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

¿Como se puede seleccionar los subtítulos en idioma español al descargar los videos? #25

Open
AndresMaceda opened this issue Apr 7, 2020 · 5 comments

Comments

@AndresMaceda
Copy link

Hola que tal,

Intento descargar los cursos con todos los idiomas pero solo descarga en Ingles.

Gracias y saludos!

[pluralsight] c76f99a0-0b9a-4cbd-8a40-82fa31ec0be3-0: Downloading JSON metadata
[pluralsight] c76f99a0-0b9a-4cbd-8a40-82fa31ec0be3-0: Downloading mp4-high-widescreen viewclip graphql
[pluralsight] c76f99a0-0b9a-4cbd-8a40-82fa31ec0be3-0: Waiting for 4 seconds to avoid throttling
[pluralsight] c76f99a0-0b9a-4cbd-8a40-82fa31ec0be3-0: Downloading captions JSON
[info] Writing video subtitles to: 02-2-Intro-1280x720.en.srt
[debug] Invoking downloader on 'https://vid5.pluralsight.com/expiretime=1586227105/4054920ec1446d07ff10200ee5742714/clips/resolution/aa74e309-d024-40ca-9658-408fecabb0d1/current/mp4/1280x720.mp4'
[download] Sleeping 141.16 seconds...

@AndresMaceda AndresMaceda changed the title ¿Como se puede seleccionar un los subtítulos en idioma español al descargar los videos? ¿Como se puede seleccionar los subtítulos en idioma español al descargar los videos? Apr 7, 2020
@SebasAas
Copy link

SebasAas commented Apr 8, 2020

Pluralsight does'nt support other languages than english. Youtube-dl and Plura-dl is just a implementation of extracting data from external sources.

@SebasAas
Copy link

@AndresMaceda una buena opcion s eria descargar los subtitulos aunque esten en ingles y posteriormente entrar en una pagina de traductor de archivos .srt, de dejo una que estoy usando yo
https://subtitlestranslator.com/

@AndresMaceda
Copy link
Author

@SebasAas
Gracias, pero lo que encontre fue modificar el codigo para que especificamente bara en español ajunto las lineas que modifque.

Saludos!

pluralsight.py
#222 line
% (self._API_BASE, clip_id, lang), video_id, => % (self._API_BASE, clip_id, 'es'), video_id,

PluralDL.py line
#1819 line add
sub_lang = 'es'

Resulta:
[download] Downloading video 6 of 71
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading JSON metadata
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading mp4-high-widescreen viewclip graphql
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading mp4-high-widescreen viewclip JSON
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Waiting for 3 seconds to avoid throttling
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading captions JSON
[info] Writing video subtitles to: 06-2-Inspecting_Different_Types_of_Errors-1280x720.es.srt

@eduardo-ad
Copy link

eduardo-ad commented Apr 29, 2020

@SebasAas
Gracias, pero lo que encontre fue modificar el codigo para que especificamente bara en español ajunto las lineas que modifque.

Saludos!

pluralsight.py
#222 line
% (self._API_BASE, clip_id, lang), video_id, => % (self._API_BASE, clip_id, 'es'), video_id,

PluralDL.py line
#1819 line add
sub_lang = 'es'

Resulta:
[download] Downloading video 6 of 71
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading JSON metadata
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading mp4-high-widescreen viewclip graphql
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading mp4-high-widescreen viewclip JSON
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Waiting for 3 seconds to avoid throttling
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading captions JSON
[info] Writing video subtitles to: 06-2-Inspecting_Different_Types_of_Errors-1280x720.es.srt

Saludos @AndresMaceda,

En el archivo pluralsight.py encontré la linea y pude editarla pero tengo problemas con el archivo PluralDL.py

En la linea que indicas #1819, no sale sub_lang pero si sale en las lineas #1816, #1818 y #1820. Probé haciendo cambios en esas lineas y me da error al ejecutar.

Podrias indicarme donde exactamente debo añadir el cambio?

Gracias,

Greetings @AndresMaceda,

In the file pluralsight.py I found the line and I could edit it but I have problems with the file PluralDL.py

In the line that you indicate #1819, there is no sub_lang but it appears in the lines #1816, #1818 and #1820. I tried to make changes in those lines and it gives me an error when executing.

Could you tell me where exactly I should add the change?

Thank you,

@eduardo-ad
Copy link

@SebasAas
Gracias, pero lo que encontre fue modificar el codigo para que especificamente bara en español ajunto las lineas que modifque.
Saludos!
pluralsight.py
#222 line
% (self._API_BASE, clip_id, lang), video_id, => % (self._API_BASE, clip_id, 'es'), video_id,
PluralDL.py line
#1819 line add
sub_lang = 'es'
Resulta:
[download] Downloading video 6 of 71
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading JSON metadata
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading mp4-high-widescreen viewclip graphql
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading mp4-high-widescreen viewclip JSON
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Waiting for 3 seconds to avoid throttling
[pluralsight] react-boilerplate-building-scalable-apps-m1-4: Downloading captions JSON
[info] Writing video subtitles to: 06-2-Inspecting_Different_Types_of_Errors-1280x720.es.srt

Saludos @AndresMaceda,

En el archivo pluralsight.py encontré la linea y pude editarla pero tengo problemas con el archivo PluralDL.py

En la linea que indicas #1819, no sale sub_lang pero si sale en las lineas #1816, #1818 y #1820. Probé haciendo cambios en esas lineas y me da error al ejecutar.

Podrias indicarme donde exactamente debo añadir el cambio?

Gracias,

Hi everyone,

What @AndresMaceda asks is how to download the subtitles of the videos to another language, since, by default is the English language. He explains the files where they should be modified to achieve this.

@rojter-tech
You could confirm if this modification that he suggests is correct and if possible, explain how to do it.

Thank You.

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