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 keeping title information intact (missing comma) in output file #24317
Comments
|
dstftw Please remove incomplete. |
Checklist
Question
WRITE QUESTION HERE
Not sure this is the best place to ask this but.... I am running a script and need to keep the title of the video the same as the path to the downloaded video in order to find and open it via PATH.
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 is causing this.
This line in my configuration file:
-o '/Volumes/Godzilla/Video/YouTube Video/%(title)s-%(id)s.%(ext)s'When the file is downloaded 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-dl in terminal the comma is not removed from errors and output.