mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.71k stars 953 forks source link

Vsco: [gallery-dl][error] Unsupported URL Video Gif File #5298

Open zone559 opened 7 months ago

zone559 commented 7 months ago

Unsupported URL 'https://vsco.co/840monica/video/9af25180-b883-43e7-a0aa-6a028215fb35'

Unable to download this video file

Wiiplay123 commented 7 months ago

Looks like the media metadata for the new video pages is different. Some tags are missing, others have different names. The videos are m3u8, so I had to use ytdl to download them. This commit I made on my fork can download the videos, but it doesn't get video tags or grid names. I couldn't figure out how to make unit tests for it because every time I tried to test VscoVideoExtractor, I got AttributeError: 'TestPathfmt' object has no attribute 'set_extension'. 28c50e1cd38b5616e8b077506d30d391e6bb4556

zone559 commented 7 months ago

when i copy the xhr file link and paste it in chrome or firefox, it download them as TS files starting from 0 That example url I provided above was separated into 3 chunks

here an example of the link: https://chunk-gcp-us-east1-vop1.fastly.mux.com/v1/chunk/9KjmmOAw5T02b89G1BQae1APn01AUVrBEU2hAF02nSENDyx9xfUDlUf3AzoDJ1DWVbJd3WyLe01xrHX8drHMtzt5V01zSexRvcKJO/0.ts?skid=default&signature=NjZmODdjNjBfNzg2NzA5MTUzYWIyMDVkZmY2MWNjNjE4ODVmMDU4ZTljNjcwYjIxMGY3N2VmYjQyYjJiM2JlZjYwOGZkNTUxYQ==&zone=1&vsid=02WZ5YdSmUwSo6014nj1LOoMe2nkbhC2psFG02cnCQ1wYeICfzwq92ATqlhYg800pLHdUF9R7zIHa900

https://chunk-gcp-us-east1-vop1.fastly.mux.com/v1/chunk/xCHmrVN019XZXNGdOV98Kyrv9fE8z851Mivmh33fWL4NAEL6FEzvU5PSifjmNfh01OsnIHh6e02mwcNyRhxEpUahsw02YCInUdaH/1.ts?skid=default&signature=NjZmODdjNjBfODkwMjhkYWJiNTUwM2JkYjdkOWViNGI4NjQzNDE0ZmNmMDY4ZjA2YzcxZWFlOTg1M2Q3NmM3MDVlN2QyN2I5ZQ==&zone=1&vsid=02WZ5YdSmUwSo6014nj1LOoMe2nkbhC2psFG02cnCQ1wYeICfzwq92ATqlhYg800pLHdUF9R7zIHa900

https://chunk-gcp-us-east1-vop1.fastly.mux.com/v1/chunk/looqSAMTMovxPgIekubpiVGK73pfrcYeDz01EGB2UdH2bc3vP019FKDCyF8wU5xWu3X71Q6adhY00tl4soD62RbvQ/2.ts?skid=default&signature=NjZmODdjNjBfYzkxYTcxZmExNGEwZjM0ODkwNDMwOWE5MTQ5ZTUxZmU3NzQ3NWNhYWUyYTg2OGQ0NTdmMjczNjc5NTM4OWU5Nw==&zone=1&vsid=02WZ5YdSmUwSo6014nj1LOoMe2nkbhC2psFG02cnCQ1wYeICfzwq92ATqlhYg800pLHdUF9R7zIHa900

Wiiplay123 commented 7 months ago

Yeah, the m3u8 file has a list of .ts files that the brower downloads. The ytdl module handles that stuff automatically, and combines them into a single mp4 file.