Closed pxssy closed 1 year ago
@mikf Can we have an option to download these livephotos into a separate folder? Because many image viewers don't support livephotos, it's quite annoying to mix them with normal photos in one folder.
Not sure, if it's possible to to identify those downloads by file extension, then yes.
Should be doable with the classify
postprocessor, which can be used like this:
{
"name": "classify",
"mapping":
{
"Pictures" : ["jpg", "jpeg", "png", "webp", "avif", "heif", "heic", "jxl", "bmp", "tif", "tiff", "jpe", "jxr", "j2k", "jp2", "hdr", "exr", "jfif", "jfi", "jif"],
"Anims" : ["gif", "apng", "mng"],
"Clips" : ["mp4", "mkv", "webm", "flv", "ogv", "wmv", "avi", "mpg", "mpeg", "3gp", "vob", "ts"],
"Music" : ["mp3", "aac", "flac", "ogg", "m4a", "wma", "wav", "mka", "ape", "mpc", "alac", "oga"],
"Archives" : ["zip", "rar", "7z", "tar", "gz", "bz2", "ace", "xz", "lz"],
"Graphics" : ["svg", "ps"],
"Documents": ["txt", "html", "htm", "md", "markdown", "pdf", "json"],
"Other" : ["swf"]
}
}
(This is the entire postprocessor object which defines said postprocessor, you can use it wherever postprocessors can be placed)
Example
https://weibo.com/5643044717/KkuDZ4jAA is a post with 9 images
gallery-dl https://weibo.com/5643044717/KkuDZ4jAA
downloads 9 images, as expected.except, somehow when viewed with a mobile, there are "live" videos embedded behind those 9 images. and the metadata json files agree.
ctrl-f "live_photo" and ctrl-f "https://video.weibo.com/"
Those are not downloaded right now. I think it was a recent thing. Please include them as well.