mosswg / dropout-dl

A tool for downloading dropout.tv episodes
GNU General Public License v3.0
29 stars 8 forks source link

One-shot episodes don't seem to work #20

Closed aquarion closed 8 months ago

aquarion commented 9 months ago

Describe the bug When I attempt to download a single-episode Dropout special, I get an Assertion error

To Reproduce

Input:

docker run --rm -it -v $PWD/login:/app/login -v $PWD/out:$HOME/Downloads dropout-dl:latest -v --output-directory $HOME/Downloads -e https://
www.dropout.tv/new-releases/videos/the-legendary-rick-perry-and-the-art-of-dimension-20

Output:

quality: highest
verbose: 1
url: "https://www.dropout.tv/new-releases/videos/the-legendary-rick-perry-and-the-art-of-dimension-20"
Got episode url: https://www.dropout.tv/new-releases/videos/the-legendary-rick-perry-and-the-art-of-dimension-20 from program arguments
Logging in...
Successfully logged in.
Cached tokens to /root/.cache/dropout-dl/token-cache
Getting episode
Got page data
Got episode metadata: {"PROPERTIES":{"CANONICAL_COLLECTION":{"href":"https://www.dropout.tv/the-legendary-rick-perry-and-the-art-of-dimension-20","id":955952,"name":"The Legendary Rick Perry and the Art of Dimension 20"},"COLLECTION_ID":129054,"COLLECTION_TITLE":"New Releases","PRODUCT_ID":28599,"VIDEO_ID":3012752,"VIDEO_TITLE":"The Legendary Rick Perry and the Art of Dimension 20","VIEW_TYPE":"video"}}
Got name: The Legendary Rick Perry and the Art of Dimension 20
Assertion failed: it != m_data.m_value.object->end() (/app/external/json/include/nlohmann/json.hpp: operator[]: 2142)

Desktop (please complete the following information): Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy

Linux Cyclone 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

mosswg commented 8 months ago

I just pushed a commit that fixes this. Thanks for submitting.