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

[RaiPlay] Subtitle extraction? #27698

Closed
rusemode opened this issue Jan 6, 2021 · 5 comments
Closed

[RaiPlay] Subtitle extraction? #27698

rusemode opened this issue Jan 6, 2021 · 5 comments

Comments

@rusemode
Copy link

rusemode commented Jan 6, 2021

Asking someone that is familiar with downloading from RaiPlay, is it possible to extract a subtitle file? If so, is it an .srt? How do they get extracted? I looked up other threads about this but I'm not very familar with the coding so I was hoping someone could lend me a hand. This is the video with the subtitles in question. https://www.raiplay.it/video/2020/12/Report---04-01-2021-2e90f1de-8eee-4de4-ac0e-78d21db5b600.html
Thank you.

@ytdl-org ytdl-org deleted a comment from Kenan-Kamel Jan 6, 2021
@remitamine
Copy link
Collaborator

is it possible to extract a subtitle file?

currently the subtitle is not detected by youtube-dl.

is it an .srt?

yes.

@nixxo
Copy link
Contributor

nixxo commented Jan 6, 2021

the website has changed (at least in the page provided as example)

the subtitle url is no longer at the "subtitles" key in the json but in the "subtitlesArray" key and, as the name suggests, is a list of subtitles in variuos languages (in theory). The provided url only has an italian subtitle.

here the json of the page where the info as are extracted: https://www.raiplay.it/video/2020/12/Report---04-01-2021-2e90f1de-8eee-4de4-ac0e-78d21db5b600.json

but, for example the url in the TESTS, the "subtitles" key is still used.

I'll modify the function that extracts the subtitles to handle both cases and do a PR.

@rusemode
Copy link
Author

rusemode commented Jan 6, 2021

Wow, thank you for the thorough response
(I will take this Italian subtitles and actually make an English file if you are interested in watching that report by any chance)

@nixxo
Copy link
Contributor

nixxo commented Jan 6, 2021

sono italiano... ;-)

@rusemode
Copy link
Author

rusemode commented Jan 6, 2021

sono italiano... ;-)

Grazie mille per il tuo aiuto, ho visto che github ha rimosso il direct message, potresti contattarmi? Ho lasciato la mia mail sul mio profilo! Volevo chiedere un paio di cose ma non voglio fare spam qui...

ThirumalaiK pushed a commit to ThirumalaiK/youtube-dl that referenced this issue Jan 28, 2021
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