Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Help. Writing errors and output to a text file—missing comma in output. #24333
Comments
|
Post the full verbose output. |
|
The full verbose output is unnecessary. The file downloads properly. This is the second time you close a request for help. It's not a bug with youtube-dl. |
|
Then help is unnecessary either. I'm not a telepathist to guess the versions and context and I can't help someone who refuses me to do so. |
Checklist
Question
WRITE QUESTION HERE
I am running a script and need the title of the video to remain the same as the path to the downloaded video in order to find and open it via my AppleScript.
I am writing errors and output to a text file called vidstatus and referencing those lines to give feedback to AppleScript on the progress of the youtube-dl request.
When I run this in AppleScript a comma is removed from the title in the tmp file.
do shell script "cd /tmp/; /usr/local/bin/youtube-dl --newline --ffmpeg-location /usr/local/bin/ffmpeg " & currentURL & " > /tmp/vidstatus 2>&1 & echo $!"I get a report like this:
In this instance the issue is in the word Mens. The comma has been removed when writing the output to the file. I am not sure what process or arguments cause this. Maybe it's a file encoding issue?
This line in my configuration file:
-o '/Volumes/Godzilla/Video/YouTube Video/%(title)s-%(id)s.%(ext)s'When the file has completed downloading the path looks like this:
/Volumes/Godzilla/Video/YouTube Video/Nathan Adrian vs Caeleb Dressel _ Men’s 100m Free B Final _ 2020 TYR Pro Swim Series - Des Moines-wvYJ_j92bjU.mp4The difference between Men's and Mens is a stumbling block for my AppleScript. Is there a way around this issue?
When running
youtube-dlin terminal the comma is not removed from my errors and output file.