Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artstation problems #720

Closed
Butterfly-Dragon opened this issue Apr 30, 2020 · 4 comments
Closed

Artstation problems #720

Butterfly-Dragon opened this issue Apr 30, 2020 · 4 comments

Comments

@Butterfly-Dragon
Copy link

Butterfly-Dragon commented Apr 30, 2020

here is how i configured my artstation extractor

        "artstation":
        {
            "filename": "{user[full_name]} - {title} - {filename} {asset[id]} {asset[position]:03}.{extension}",
            "external": true
        },

(not much, really)

and these are sample errors from my galleries:

[artstation][debug] Using ArtstationUserExtractor for 'https://www.artstation.com/artemstudios'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.artstation.com:443
[urllib3.connectionpool][debug] https://www.artstation.com:443 "GET /users/artemstudios/quick.json HTTP/1.1" 200 None
[artstation][debug] Using download archive 'D:/Downloads/Downloader//!Downloader/archive.sqlite3'
[urllib3.connectionpool][debug] https://www.artstation.com:443 "GET /users/artemstudios/projects.json?page=1 HTTP/1.1" 200 None
[urllib3.connectionpool][debug] https://www.artstation.com:443 "GET /projects/lVWE6z.json HTTP/1.1" 200 None
[artstation][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'startswith'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[artstation][debug] 
Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\site-packages\gallery_dl\job.py", line 49, in run
    for msg in self.extractor:
  File "C:\Program Files\Python38\lib\site-packages\gallery_dl\extractor\artstation.py", line 43, in items
    if not url.startswith(self.root):
AttributeError: 'NoneType' object has no attribute 'startswith'
[artstation][debug] Using ArtstationUserExtractor for 'https://www.artstation.com/atomcyber'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.artstation.com:443
[urllib3.connectionpool][debug] https://www.artstation.com:443 "GET /users/atomcyber/quick.json HTTP/1.1" 200 None
[artstation][debug] Using download archive 'D:/Downloads/Downloader//!Downloader/archive.sqlite3'
[urllib3.connectionpool][debug] https://www.artstation.com:443 "GET /users/atomcyber/projects.json?page=1 HTTP/1.1" 200 None
[urllib3.connectionpool][debug] https://www.artstation.com:443 "GET /projects/3oKvRY.json HTTP/1.1" 200 None
[artstation][error] An unexpected error occurred: ValueError - dictionary update sequence element #0 has length 1; 2 is required. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[artstation][debug] 
Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\site-packages\gallery_dl\job.py", line 50, in run
    self.dispatch(msg)
  File "C:\Program Files\Python38\lib\site-packages\gallery_dl\job.py", line 84, in dispatch
    self.handle_url(url, kwds)
  File "C:\Program Files\Python38\lib\site-packages\gallery_dl\job.py", line 215, in handle_url
    if not self.download(url):
  File "C:\Program Files\Python38\lib\site-packages\gallery_dl\job.py", line 307, in download
    downloader = self.get_downloader(scheme)
  File "C:\Program Files\Python38\lib\site-packages\gallery_dl\job.py", line 328, in get_downloader
    instance = cls(self.extractor, self.out)
  File "C:\Program Files\Python38\lib\site-packages\gallery_dl\downloader\ytdl.py", line 34, in __init__
    options.update(self.config("raw-options") or {})
ValueError: dictionary update sequence element #0 has length 1; 2 is required
@mikf
Copy link
Owner

mikf commented Apr 30, 2020

The first on was an actual bug when extracting embed URLs, should now be fixed with 90491ab.

The second one is the same ytdl downloader misconfiguration as pointed out in #719 (comment)

@Butterfly-Dragon
Copy link
Author

thanks!

@Hrxn
Copy link
Contributor

Hrxn commented May 2, 2020

@mikf I noticed something while trying to test this here too. Not the same issue as OP, but since this is still an open issue for ArtStation 😉

But first of all, I ran a gallery-dl version from repo with 90491ab included, and I can confirm that the first example URL finishes without any issues for me as well.


Now the issue (random artwork from the second example with an included YouTube embed):
PS D:\Test> gallery-dl --verbose 'https://www.artstation.com/artwork/w8lY4V'
[gallery-dl][debug] Version 1.13.6-dev
[gallery-dl][debug] Python 3.8.2 - Windows-10-10.0.18362-SP0
[gallery-dl][debug] requests 2.23.0 - urllib3 1.25.9
[gallery-dl][debug] Starting DownloadJob for 'https://www.artstation.com/artwork/w8lY4V'
[artstation][debug] Using ArtstationImageExtractor for 'https://www.artstation.com/artwork/w8lY4V'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.artstation.com:443
[urllib3.connectionpool][debug] https://www.artstation.com:443 "GET /projects/w8lY4V.json HTTP/1.1" 200 None
[urllib3.connectionpool][debug] https://www.artstation.com:443 "GET /users/atomcyber/quick.json HTTP/1.1" 200 None
[artstation][debug] Active postprocessor modules: [ClassifyPP]
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): cdna.artstation.com:443
[urllib3.connectionpool][debug] https://cdna.artstation.com:443 "GET /p/assets/images/images/025/848/956/large/atom-cyber-destroy-all-robots-poster-without-titles.jpg?1587123039&gallerydl_no_cache=5Ow3IzXocFz HTTP/1.1" 200 869512
* C:\Move\Artstation\Artworks\Pictures\7121518_25848956_Destroy all robots.jpg
[urllib3.connectionpool][debug] https://cdna.artstation.com:443 "GET /p/assets/images/images/025/848/954/large/atom-cyber-destroy-all-robots-cover-low.jpg?1587122910&gallerydl_no_cache=1KA6p1oKk1u HTTP/1.1" 200 978739
* C:\Move\Artstation\Artworks\Pictures\7121518_25848954_Destroy all robots.jpg
[downloader.ytdl][debug] [youtube] IPmtGaZAgwA: Downloading webpage
[downloader.ytdl][debug] [youtube] IPmtGaZAgwA: Downloading MPD manifest
  C:\Move\Artstation\Artworks\7121518_25848939_Destroy all robots.mp4[downloader.ytdl][warning] Requested formats are incompatible for merge and will be merged into mkv.
[downloader.ytdl][debug] [dashsegments] Total fragments: 14
[downloader.ytdl][debug] [download] Destination: \\?\C:\Move\Artstation\Artworks\7121518_25848939_Destroy all robots.f136.mp4
[download]   7.1% of ~10.12KiB at Unknown speed ETA 00:01
[download]   7.1% of ~10.12KiB at Unknown speed ETA 00:01
[download]   0.2% of ~872.58KiB at Unknown speed ETA 01:19
[download]   0.4% of ~872.58KiB at Unknown speed ETA 00:36
[download]   0.9% of ~872.58KiB at Unknown speed ETA 00:17
[download]   1.8% of ~872.58KiB at Unknown speed ETA 00:08
[download]   3.6% of ~872.58KiB at  1.94MiB/s ETA 00:04
[download]   7.3% of ~872.58KiB at  1.97MiB/s ETA 00:02
[download]  14.3% of ~872.58KiB at  2.58MiB/s ETA 00:01
[download]  14.3% of ~872.58KiB at  2.58MiB/s ETA 00:01
[download]   8.0% of ~1.53MiB at  2.58MiB/s ETA 00:03
[download]   8.2% of ~1.53MiB at  2.58MiB/s ETA 00:03
[download]   8.4% of ~1.53MiB at  2.58MiB/s ETA 00:03
[download]   8.9% of ~1.53MiB at  2.58MiB/s ETA 00:03
[download]  10.0% of ~1.53MiB at  1.94MiB/s ETA 00:02
[download]  12.0% of ~1.53MiB at  3.94MiB/s ETA 00:02
[download]  16.1% of ~1.53MiB at  3.97MiB/s ETA 00:01
[download]  21.4% of ~1.53MiB at  3.28MiB/s ETA 00:01
[download]  21.4% of ~1.53MiB at  3.28MiB/s ETA 00:01
[download]  17.9% of ~1.83MiB at  3.28MiB/s ETA 00:02
[download]  18.0% of ~1.83MiB at  3.28MiB/s ETA 00:01
[download]  18.2% of ~1.83MiB at 447.95KiB/s ETA 00:02
[download]  18.7% of ~1.83MiB at 959.90KiB/s ETA 00:01
[download]  19.5% of ~1.83MiB at  1.94MiB/s ETA 00:01
[download]  21.2% of ~1.83MiB at  1.96MiB/s ETA 00:01
[download]  24.6% of ~1.83MiB at  2.65MiB/s ETA 00:01
[download]  28.6% of ~1.83MiB at  3.14MiB/s ETA 00:01
[download]  28.6% of ~1.83MiB at  3.14MiB/s ETA 00:01
[download]  22.9% of ~2.29MiB at  3.14MiB/s ETA 00:02
[download]  23.0% of ~2.29MiB at  3.14MiB/s ETA 00:01
[download]  23.1% of ~2.29MiB at  3.14MiB/s ETA 00:01
[download]  23.5% of ~2.29MiB at  3.14MiB/s ETA 00:01
[download]  24.2% of ~2.29MiB at  1.94MiB/s ETA 00:01
[download]  25.5% of ~2.29MiB at  3.93MiB/s ETA 00:01
[download]  28.3% of ~2.29MiB at  3.97MiB/s ETA 00:01
[download]  33.7% of ~2.29MiB at  3.98MiB/s ETA 00:01
[download]  35.7% of ~2.29MiB at  3.77MiB/s ETA 00:01
[download]  35.7% of ~2.29MiB at  3.77MiB/s ETA 00:01
[download]  35.4% of ~2.32MiB at  3.77MiB/s ETA 00:01
[download]  35.4% of ~2.32MiB at  3.77MiB/s ETA 00:01
[download]  35.6% of ~2.32MiB at 448.00KiB/s ETA 00:01
[download]  35.9% of ~2.32MiB at 960.00KiB/s ETA 00:01
[download]  36.6% of ~2.32MiB at  1.94MiB/s ETA 00:01
[download]  38.0% of ~2.32MiB at  1.97MiB/s ETA 00:01
[download]  40.7% of ~2.32MiB at  2.65MiB/s ETA 00:01
[download]  42.9% of ~2.32MiB at  3.73MiB/s ETA 00:01
[download]  42.9% of ~2.32MiB at  3.73MiB/s ETA 00:01
[download]  42.5% of ~2.34MiB at  3.73MiB/s ETA 00:01
[download]  42.5% of ~2.34MiB at  3.73MiB/s ETA 00:01
[download]  42.7% of ~2.34MiB at  3.73MiB/s ETA 00:01
[download]  43.0% of ~2.34MiB at 959.79KiB/s ETA 00:01
[download]  43.7% of ~2.34MiB at  1.94MiB/s ETA 00:01
[download]  45.0% of ~2.34MiB at  1.97MiB/s ETA 00:01
[download]  47.7% of ~2.34MiB at  3.97MiB/s ETA 00:01
[download]  50.0% of ~2.34MiB at  3.79MiB/s ETA 00:00
[download]  50.0% of ~2.34MiB at  3.79MiB/s ETA 00:00
[download]  49.7% of ~2.36MiB at  3.79MiB/s ETA 00:01
[download]  49.8% of ~2.36MiB at  3.79MiB/s ETA 00:01
[download]  49.9% of ~2.36MiB at  3.79MiB/s ETA 00:01
[download]  50.3% of ~2.36MiB at  3.79MiB/s ETA 00:01
[download]  50.9% of ~2.36MiB at  1.94MiB/s ETA 00:01
[download]  52.3% of ~2.36MiB at  3.94MiB/s ETA 00:00
[download]  54.9% of ~2.36MiB at  3.97MiB/s ETA 00:00
[download]  57.1% of ~2.36MiB at  3.77MiB/s ETA 00:00
[download]  57.1% of ~2.36MiB at  3.77MiB/s ETA 00:00
[download]  55.1% of ~2.45MiB at  3.77MiB/s ETA 00:00
[download]  55.2% of ~2.45MiB at  3.77MiB/s ETA 00:00
[download]  55.3% of ~2.45MiB at  3.77MiB/s ETA 00:00
[download]  55.6% of ~2.45MiB at  3.77MiB/s ETA 00:00
[download]  56.3% of ~2.45MiB at  1.94MiB/s ETA 00:00
[download]  57.6% of ~2.45MiB at  3.94MiB/s ETA 00:00
[download]  60.1% of ~2.45MiB at  3.97MiB/s ETA 00:00
[download]  64.3% of ~2.45MiB at  4.82MiB/s ETA 00:00
[download]  64.3% of ~2.45MiB at  4.82MiB/s ETA 00:00
[download]  64.0% of ~2.46MiB at  4.82MiB/s ETA 00:00
[download]  64.0% of ~2.46MiB at  4.82MiB/s ETA 00:00
[download]  64.2% of ~2.46MiB at  4.82MiB/s ETA 00:00
[download]  64.5% of ~2.46MiB at  4.82MiB/s ETA 00:00
[download]  65.1% of ~2.46MiB at  1.94MiB/s ETA 00:00
[download]  66.4% of ~2.46MiB at  3.94MiB/s ETA 00:00
[download]  69.0% of ~2.46MiB at  3.97MiB/s ETA 00:00
[download]  71.4% of ~2.46MiB at  3.94MiB/s ETA 00:00
[download]  71.4% of ~2.46MiB at  3.94MiB/s ETA 00:00
[download]  70.1% of ~2.51MiB at  3.94MiB/s ETA 00:00
[download]  70.2% of ~2.51MiB at  3.94MiB/s ETA 00:00
[download]  70.4% of ~2.51MiB at  3.94MiB/s ETA 00:00
[download]  70.7% of ~2.51MiB at 959.96KiB/s ETA 00:00
[download]  71.3% of ~2.51MiB at  1.94MiB/s ETA 00:00
[download]  72.6% of ~2.51MiB at  3.94MiB/s ETA 00:00
[download]  75.0% of ~2.51MiB at  3.97MiB/s ETA 00:00
[download]  78.6% of ~2.51MiB at  4.53MiB/s ETA 00:00
[download]  78.6% of ~2.51MiB at  4.53MiB/s ETA 00:00
[download]  62.2% of ~3.17MiB at 64.00KiB/s ETA 00:01
[download]  62.3% of ~3.17MiB at 191.99KiB/s ETA 00:01
[download]  62.4% of ~3.17MiB at 447.99KiB/s ETA 00:00
[download]  62.7% of ~3.17MiB at 959.97KiB/s ETA 00:00
[download]  63.2% of ~3.17MiB at 991.85KiB/s ETA 00:00
[download]  64.1% of ~3.17MiB at  1.97MiB/s ETA 00:00
[download]  66.1% of ~3.17MiB at  2.65MiB/s ETA 00:00
[download]  70.1% of ~3.17MiB at  3.98MiB/s ETA 00:00
[download]  78.0% of ~3.17MiB at  4.56MiB/s ETA 00:00
[download]  85.7% of ~3.17MiB at  5.30MiB/s ETA 00:00
[download]  85.7% of ~3.17MiB at  5.30MiB/s ETA 00:00
[download]  71.4% of ~3.81MiB at  5.30MiB/s ETA 00:00
[download]  71.4% of ~3.81MiB at  5.30MiB/s ETA 00:00
[download]  71.5% of ~3.81MiB at  5.30MiB/s ETA 00:00
[download]  71.7% of ~3.81MiB at  5.30MiB/s ETA 00:00
[download]  72.2% of ~3.81MiB at  1.94MiB/s ETA 00:00
[download]  73.0% of ~3.81MiB at  3.94MiB/s ETA 00:00
[download]  74.6% of ~3.81MiB at  3.97MiB/s ETA 00:00
[download]  77.9% of ~3.81MiB at  5.31MiB/s ETA 00:00
[download]  84.5% of ~3.81MiB at  5.32MiB/s ETA 00:00
[download]  92.9% of ~3.81MiB at  5.80MiB/s ETA 00:00
[download]  92.9% of ~3.81MiB at  5.80MiB/s ETA 00:00
[download]  92.8% of ~3.81MiB at  5.80MiB/s ETA 00:00
[download]  92.8% of ~3.81MiB at  5.80MiB/s ETA 00:00
[download]  92.9% of ~3.81MiB at  5.80MiB/s ETA 00:00
[download]  93.1% of ~3.81MiB at  5.80MiB/s ETA 00:00
[download]  93.6% of ~3.81MiB at  1.94MiB/s ETA 00:00
[download]  94.4% of ~3.81MiB at  3.94MiB/s ETA 00:00
[download]  96.0% of ~3.81MiB at  3.97MiB/s ETA 00:00
[download]  99.3% of ~3.81MiB at  3.98MiB/s ETA 00:00
[download] 100.0% of ~3.81MiB at  4.41MiB/s ETA 00:00
[download] 100.0% of ~3.81MiB at  4.41MiB/s ETA 00:00
[download] 100% of 3.81MiB in 00:02
[downloader.ytdl][debug] [dashsegments] Total fragments: 8
[downloader.ytdl][debug] [download] Destination: \\?\C:\Move\Artstation\Artworks\7121518_25848939_Destroy all robots.mp4.f251
[download]  12.5% of ~2.08KiB at Unknown speed ETA 00:00
[download]  12.5% of ~2.08KiB at Unknown speed ETA 00:00
[download]   0.2% of ~620.93KiB at Unknown speed ETA 01:16
[download]   0.5% of ~620.93KiB at Unknown speed ETA 00:29
[download]   1.2% of ~620.93KiB at Unknown speed ETA 00:13
[download]   2.5% of ~620.93KiB at Unknown speed ETA 00:06
[download]   5.0% of ~620.93KiB at  1.94MiB/s ETA 00:03
[download]  10.2% of ~620.93KiB at  3.94MiB/s ETA 00:01
[download]  20.5% of ~620.93KiB at  3.97MiB/s ETA 00:00
[download]  25.0% of ~620.93KiB at  3.23MiB/s ETA 00:00
[download]  25.0% of ~620.93KiB at  3.23MiB/s ETA 00:00
[download]  18.0% of ~866.41KiB at  3.23MiB/s ETA 00:01
[download]  18.3% of ~866.41KiB at  3.23MiB/s ETA 00:01
[download]  18.7% of ~866.41KiB at  3.23MiB/s ETA 00:01
[download]  19.6% of ~866.41KiB at  3.23MiB/s ETA 00:01
[download]  21.5% of ~866.41KiB at  1.94MiB/s ETA 00:01
[download]  25.2% of ~866.41KiB at  3.94MiB/s ETA 00:00
[download]  32.6% of ~866.41KiB at  3.97MiB/s ETA 00:00
[download]  37.5% of ~866.41KiB at  3.53MiB/s ETA 00:00
[download]  37.5% of ~866.41KiB at  3.53MiB/s ETA 00:00
[download]  32.9% of ~990.25KiB at  3.53MiB/s ETA 00:00
[download]  33.1% of ~990.25KiB at  3.53MiB/s ETA 00:00
[download]  33.5% of ~990.25KiB at  3.53MiB/s ETA 00:00
[download]  34.3% of ~990.25KiB at  3.53MiB/s ETA 00:00
[download]  35.9% of ~990.25KiB at  1.95MiB/s ETA 00:00
[download]  39.2% of ~990.25KiB at  3.95MiB/s ETA 00:00
[download]  45.6% of ~990.25KiB at  3.98MiB/s ETA 00:00
[download]  50.0% of ~990.25KiB at  3.55MiB/s ETA 00:00
[download]  50.0% of ~990.25KiB at  3.55MiB/s ETA 00:00
[download]  47.0% of ~1.03MiB at  3.55MiB/s ETA 00:00
[download]  47.2% of ~1.03MiB at  3.55MiB/s ETA 00:00
[download]  47.6% of ~1.03MiB at  3.55MiB/s ETA 00:00
[download]  48.4% of ~1.03MiB at 960.57KiB/s ETA 00:00
[download]  49.9% of ~1.03MiB at  1.94MiB/s ETA 00:00
[download]  52.9% of ~1.03MiB at  1.97MiB/s ETA 00:00
[download]  59.0% of ~1.03MiB at  2.65MiB/s ETA 00:00
[download]  62.5% of ~1.03MiB at  3.42MiB/s ETA 00:00
[download]  62.5% of ~1.03MiB at  3.42MiB/s ETA 00:00
[download]  59.9% of ~1.08MiB at  3.42MiB/s ETA 00:00
[download]  60.1% of ~1.08MiB at  3.42MiB/s ETA 00:00
[download]  60.5% of ~1.08MiB at  3.42MiB/s ETA 00:00
[download]  61.2% of ~1.08MiB at  3.42MiB/s ETA 00:00
[download]  62.7% of ~1.08MiB at  1.94MiB/s ETA 00:00
[download]  65.6% of ~1.08MiB at  3.94MiB/s ETA 00:00
[download]  71.4% of ~1.08MiB at  3.97MiB/s ETA 00:00
[download]  75.0% of ~1.08MiB at  3.48MiB/s ETA 00:00
[download]  75.0% of ~1.08MiB at  3.48MiB/s ETA 00:00
[download]  72.6% of ~1.11MiB at  3.48MiB/s ETA 00:00
[download]  72.7% of ~1.11MiB at  3.48MiB/s ETA 00:00
[download]  73.1% of ~1.11MiB at  3.48MiB/s ETA 00:00
[download]  73.8% of ~1.11MiB at  3.48MiB/s ETA 00:00
[download]  75.2% of ~1.11MiB at  1.94MiB/s ETA 00:00
[download]  78.0% of ~1.11MiB at  3.94MiB/s ETA 00:00
[download]  83.6% of ~1.11MiB at  3.97MiB/s ETA 00:00
[download]  87.5% of ~1.11MiB at  3.57MiB/s ETA 00:00
[download]  87.5% of ~1.11MiB at  3.57MiB/s ETA 00:00
[download]  91.8% of ~1.06MiB at  3.57MiB/s ETA 00:00
[download]  92.0% of ~1.06MiB at  3.57MiB/s ETA 00:00
[download]  92.4% of ~1.06MiB at  3.57MiB/s ETA 00:00
[download]  93.1% of ~1.06MiB at  3.57MiB/s ETA 00:00
[download]  94.6% of ~1.06MiB at  1.94MiB/s ETA 00:00
[download]  97.5% of ~1.06MiB at  3.94MiB/s ETA 00:00
[download] 100.0% of ~1.06MiB at  2.82MiB/s ETA 00:00
[download] 100.0% of ~1.06MiB at  2.82MiB/s ETA 00:00
[download] 100% of 1.06MiB in 00:00
[downloader.ytdl][debug] [ffmpeg] Merging formats into "\\?\C:\Move\Artstation\Artworks\7121518_25848939_Destroy all robots.mkv"
[downloader.ytdl][debug] Deleting original file \\?\C:\Move\Artstation\Artworks\7121518_25848939_Destroy all robots.f136.mp4 (pass -k to keep)
[downloader.ytdl][debug] Deleting original file \\?\C:\Move\Artstation\Artworks\7121518_25848939_Destroy all robots.mp4.f251 (pass -k to keep)
[artstation][error] Unable to download data:  FileNotFoundError: [Errno 2] No such file or directory: '\\\\?\\C:\\Move\\Artstation\\Artworks\\7121518_25848939_Destroy all robots.mp4'
[artstation][debug]
Traceback (most recent call last):
  File "c:\users\hrxn\appdata\local\programs\python\python38\lib\site-packages\gallery_dl\util.py", line 838, in finalize
    os.replace(self.temppath, self.realpath)
FileNotFoundError: [WinError 2] The system cannot find the file specified: '\\\\?\\C:\\Move\\Artstation\\Artworks\\7121518_25848939_Destroy all robots.mp4' -> '\\\\?\\C:\\Move\\Artstation\\Artworks\\Clips\\7121518_25848939_Destroy all robots.mp4'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\hrxn\appdata\local\programs\python\python38\lib\site-packages\gallery_dl\job.py", line 50, in run
    self.dispatch(msg)
  File "c:\users\hrxn\appdata\local\programs\python\python38\lib\site-packages\gallery_dl\job.py", line 84, in dispatch
    self.handle_url(url, kwds)
  File "c:\users\hrxn\appdata\local\programs\python\python38\lib\site-packages\gallery_dl\job.py", line 240, in handle_url
    pathfmt.finalize()
  File "c:\users\hrxn\appdata\local\programs\python\python38\lib\site-packages\gallery_dl\util.py", line 840, in finalize
    shutil.copyfile(self.temppath, self.realpath)
  File "c:\users\hrxn\appdata\local\programs\python\python38\lib\shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '\\\\?\\C:\\Move\\Artstation\\Artworks\\7121518_25848939_Destroy all robots.mp4'
PS D:\Test>

This is with my normal config, except base-dir changed to another test directory here.
And it is indeed caused by the classify postprocessor. It works if I turn it off:

PS D:\Test> gallery-dl --option '"postprocessors"=null' 'https://www.artstation.com/artwork/w8lY4V'
* C:\Move\Artstation\Artworks\7121518_25848956_Destroy all robots.jpg
* C:\Move\Artstation\Artworks\7121518_25848954_Destroy all robots.jpg
  C:\Move\Artstation\Artworks\7121518_25848939_Destroy all robots.mp4[downloader.ytdl][warning] Requested formats are incompatible for merge and will be merged into mkv.
* C:\Move\Artstation\Artworks\7121518_25848939_Destroy all robots.mp4
PS D:\Test>

@mikf
Copy link
Owner

mikf commented May 14, 2020

@Hrxn should be fixed with f8661c6

Youtube-dl was outputting to a .mkv file and gallery-dl was assuming it would have .mp4 as file extension, because that's what youtube-dl reported before the download.

@mikf mikf closed this as completed May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants