lap00zza / 9anime-Companion

:rocket: A simple companion extension for 9anime
https://chrome.google.com/webstore/detail/9anime-companion/fopcehkidabibdmachbcpbgllhehknah
MIT License
89 stars 26 forks source link

jdownloader2 name issue #77

Open mskomek opened 7 years ago

mskomek commented 7 years ago

Select your issue type: (check at least one)

Describe your issue: Hello. Name of the downloads dont rename according to title on the link. Is there any solution for this?

Thank you for great app

lap00zza commented 7 years ago

Hi. For external downloaders (direct links), 9anime Companion adds the episode metadata (title and episode number) by adding the title parameter onto the download links that 9anime sends back. Ex: title=Kono Subarashii Sekai ni Shukufuku wo! 2_E010_720p

When 9anime sends back the download links, most are CDN links. When you resolve them, you get back a media file. The title parameter works in this case. (Atleast in Internet Download Manager it does)

Some links are direct video links (mp4 etc). For those the title parameter does not work. I tried looking for a solution but didn't find anything.

One workaround is to download via the browser directly. In this case the metadata can be preserved since the Download API allows for re/naming the files.