Open daviddoji opened 7 years ago
Hi!
If you plan to get subtitles from outside Kodi I recommend you to use the base module: https://github.com/ldotlopez/tusubtitulo
Anyway, there is no way to get the whole season "per-se" (it's beyond of the purpose of this project) but you can do it with some scripting.
Just iterate over the episodes of the season:
for i in $(seq 1 13); do python3 tusubtitulo "The Wire - 4x$i"; done
Thx for the fast reply.
Once again, great job man!
Although iteration over a sequence works smoothly, I get subtitles without naming the chapters (e.g. "The Wire - 4x1.en.srt). Is there any way to get those names as well?
Thx in advance
Hi,
tusubtitulo.py is meant to be used with real files (but you can always pass arbitrary strings). This means that downloaded subtitules will match the original filename with ".<lang>.str" extension without renaming anything
There are other tools that can do the renaming job much better. In example: https://github.com/dbr/tvnamer
My personal "pipeline" works like this:
"Get" some episode > Download subtitles with tusubtitulo.py > Rename avi/mkv/srt with tvnamer
First of all, thanks for the piece of code! Great job! I did kind of similar project but never found the time to polish it.
Is there a way to download a whole season from a single call to your script? Let's say I would like to download all subtitules from "The wire - Season 4". How can I do it from a simple call? I tried something like: "python subtitles.py "The Wire - Season 4"" but it doesn't work.
Thx!!!