You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am downloading videos and photos from twitter. Trying to use the classify postprocessors for twitter to split videos from pictures. Tried:
"postprocessors": [
{
"name": "classify",
"mapping": {
"images": ["jpg", "png", "gif"],
"videos": ["mp4"]
}
}
]
Inside my twitter syntax in the config.
Images work fine but once the first video is processed the script will crash:
[twitter][debug] Traceback
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/gallery_dl/job.py", line 52, in run
self.dispatch(msg)
File "/usr/local/lib/python3.7/site-packages/gallery_dl/job.py", line 94, in dispatch
self.handle_url(url, kwds)
File "/usr/local/lib/python3.7/site-packages/gallery_dl/job.py", line 190, in handle_url
pp.prepare(self.pathfmt)
File "/usr/local/lib/python3.7/site-packages/gallery_dl/postprocessor/classify.py", line 36, in prepare
ext = pathfmt.keywords["extension"]
KeyError: 'extension'
The text was updated successfully, but these errors were encountered:
This appears to be a harder-to-solve problem than I initially thought.
With 79f6755 it at least doesn't crash anymore, but it still can't move videos into their own directory.
The main issue here is the youtube-dl downloader setting a (new) filename extension for the video and in doing so causing the target path to be rebuild.
I am downloading videos and photos from twitter. Trying to use the classify postprocessors for twitter to split videos from pictures. Tried:
"postprocessors": [
{
"name": "classify",
"mapping": {
"images": ["jpg", "png", "gif"],
"videos": ["mp4"]
}
}
]
Inside my twitter syntax in the config.
Images work fine but once the first video is processed the script will crash:
[twitter][debug] Traceback
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/gallery_dl/job.py", line 52, in run
self.dispatch(msg)
File "/usr/local/lib/python3.7/site-packages/gallery_dl/job.py", line 94, in dispatch
self.handle_url(url, kwds)
File "/usr/local/lib/python3.7/site-packages/gallery_dl/job.py", line 190, in handle_url
pp.prepare(self.pathfmt)
File "/usr/local/lib/python3.7/site-packages/gallery_dl/postprocessor/classify.py", line 36, in prepare
ext = pathfmt.keywords["extension"]
KeyError: 'extension'
The text was updated successfully, but these errors were encountered: