From c444fab5f0dd8e28ec4cc9a70febda05a00bf4a8 Mon Sep 17 00:00:00 2001 From: edbrz9 Date: Thu, 29 Dec 2022 14:40:28 +0100 Subject: [PATCH] check --- proj/y2t/handler.php | 2 +- proj/y2t/y2t.py | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/proj/y2t/handler.php b/proj/y2t/handler.php index f6a8edd..61187b6 100644 --- a/proj/y2t/handler.php +++ b/proj/y2t/handler.php @@ -37,7 +37,7 @@ $txt = var_export($output, true); echo $txt[0]; echo nl2br("\nreturn:\n"); - var_export($return); + //var_export($return); diff --git a/proj/y2t/y2t.py b/proj/y2t/y2t.py index 86c3743..0911173 100644 --- a/proj/y2t/y2t.py +++ b/proj/y2t/y2t.py @@ -2,17 +2,9 @@ import youtube_dl import sys import os -with open ("output/hello.txt", 'w') as file: - file.write("hello file check 2") - url = sys.argv[1] 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 = { 'writesubtitles': True, 'writeautomaticsub': True, @@ -69,6 +61,5 @@ if currentString: blocks = len(sList) for i in range(blocks): - print('This is part '+ str(i+1) +'/'+ str(blocks) + " of the transcript of a video named: "+ title) - print(sList[i]) + print('This is part '+ str(i+1) +'/'+ str(blocks) + " of the transcript of a video named: "+ title + ": \n" + sList[i])