This commit is contained in:
edbrz9 2022-12-29 14:40:28 +01:00
parent aa6ae1ef18
commit c444fab5f0
2 changed files with 2 additions and 11 deletions

View File

@ -37,7 +37,7 @@
$txt = var_export($output, true); $txt = var_export($output, true);
echo $txt[0]; echo $txt[0];
echo nl2br("\nreturn:\n"); echo nl2br("\nreturn:\n");
var_export($return); //var_export($return);

View File

@ -2,17 +2,9 @@ import youtube_dl
import sys import sys
import os import os
with open ("output/hello.txt", 'w') as file:
file.write("hello file check 2")
url = sys.argv[1] url = sys.argv[1]
lang = sys.argv[2] lang = sys.argv[2]
print("python script will now process url:" + url + "in lang:" + lang)
with open ("output/check 13", 'w') as file:
file.write("echek 13\n")
ydl_opts = { ydl_opts = {
'writesubtitles': True, 'writesubtitles': True,
'writeautomaticsub': True, 'writeautomaticsub': True,
@ -69,6 +61,5 @@ if currentString:
blocks = len(sList) blocks = len(sList)
for i in range(blocks): for i in range(blocks):
print('This is part '+ str(i+1) +'/'+ str(blocks) + " of the transcript of a video named: "+ title) print('This is part '+ str(i+1) +'/'+ str(blocks) + " of the transcript of a video named: "+ title + ": \n" + sList[i])
print(sList[i])