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

youtube-dl -a can't handle batch files with mobile youtube links #14626

Closed
qutetemp opened this issue Oct 29, 2017 · 1 comment
Closed

youtube-dl -a can't handle batch files with mobile youtube links #14626

qutetemp opened this issue Oct 29, 2017 · 1 comment
Labels

Comments

@qutetemp
Copy link

@qutetemp qutetemp commented Oct 29, 2017

youtube-dl can handle them ok when appending them like this:

youtube-dl 'https://m.youtube.com/watch?v=rgSr1NkFV-g&itct=CDUQpDAYAiITCKSdka7EltcCFbEafgodhcgEXjILYzQtdmlkZW9zLXVaGFVDLWxISlpSM0dxeG0yNF9WZF9BSjVZdw%3D%3D&client=mv-google&hl=en&gl=EN' 'https://m.youtube.com/watch?v=TS3dxL0E1kc&itct=CBAQpDAYACITCIe_rrXEltcCFQxtfgodNQINmDIGcmVsbWZ1SOivlcjN-qqCrgE%3D&hl=en&client=mv-google&gl=EN'

but cannot handle links_file where links_file contains both links seperated by a newline

https://m.youtube.com/watch?v=rgSr1NkFV-g&itct=CDUQpDAYAiITCKSdka7EltcCFbEafgodhcgEXjILYzQtdmlkZW9zLXVaGFVDLWxISlpSM0dxeG0yNF9WZF9BSjVZdw%3D%3D&client=mv-google&hl=en&gl=EN
https://m.youtube.com/watch?v=TS3dxL0E1kc&itct=CBAQpDAYACITCIe_rrXEltcCFQxtfgodNQINmDIGcmVsbWZ1SOivlcjN-qqCrgE%3D&hl=en&client=mv-google&gl=EN

where youtube-dl is run in the directory where the links_file currently is with

youtube-dl -a links_file
ERROR: batch file could not be read
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 29, 2017

Most likely you misspell the filename.

PS C:\Dev\youtube-dl\master> cat links.txt
https://m.youtube.com/watch?v=rgSr1NkFV-g&itct=CDUQpDAYAiITCKSdka7EltcCFbEafgodhcgEXjILYzQtdmlkZW9zLXVaGFVDLWxISlpSM0dxeG0yNF9WZF9BSjVZdw%3D%3
D&client=mv-google&hl=en&gl=EN
https://m.youtube.com/watch?v=TS3dxL0E1kc&itct=CBAQpDAYACITCIe_rrXEltcCFQxtfgodNQINmDIGcmVsbWZ1SOivlcjN-qqCrgE%3D&hl=en&client=mv-google&gl=EN
PS C:\Dev\youtube-dl\master> py -3.6 .\youtube_dl\__main__.py -a links.txt
[youtube] rgSr1NkFV-g: Downloading webpage
[youtube] rgSr1NkFV-g: Downloading video info webpage
[youtube] rgSr1NkFV-g: Extracting video information
[youtube] rgSr1NkFV-g: Downloading MPD manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: YOU LAUGH YOU LOSE - Episode 01-rgSr1NkFV-g.f137.mp4
[download] 100% of 114.69MiB in 00:10
[download] Destination: YOU LAUGH YOU LOSE - Episode 01-rgSr1NkFV-g.f251.webm
[download] 100% of 10.98MiB in 00:00
[ffmpeg] Merging formats into "YOU LAUGH YOU LOSE - Episode 01-rgSr1NkFV-g.mkv"
Deleting original file YOU LAUGH YOU LOSE - Episode 01-rgSr1NkFV-g.f137.mp4 (pass -k to keep)
Deleting original file YOU LAUGH YOU LOSE - Episode 01-rgSr1NkFV-g.f251.webm (pass -k to keep)
[youtube] TS3dxL0E1kc: Downloading webpage
[youtube] TS3dxL0E1kc: Downloading video info webpage
[youtube] TS3dxL0E1kc: Extracting video information
[youtube] TS3dxL0E1kc: Downloading js player vflhIZIgy
[youtube] TS3dxL0E1kc: Downloading MPD manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] YOU LAUGH YOU LOSE! CHALLENGE #0001-TS3dxL0E1kc.mkv has already been downloaded and merged
@dstftw dstftw closed this Oct 29, 2017
@dstftw dstftw added the invalid label Oct 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.