2828import shutil
2929
3030
31- VERSION = "1.4.5 "
31+ VERSION = "1.4.6 "
3232
3333
3434class Language :
@@ -785,10 +785,10 @@ def __call__(self, media_filepath):
785785
786786 if not os .path .isfile (media_filepath ):
787787 if self .error_messages_callback :
788- self .error_messages_callback (f"The given file does not exist: { media_filepath } " )
788+ self .error_messages_callback (f"The given file does not exist: ' { media_filepath } ' " )
789789 else :
790- print (f"The given file does not exist: { media_filepath } " )
791- raise Exception (f"Invalid file: { media_filepath } " )
790+ print (f"The given file does not exist: ' { media_filepath } ' " )
791+ raise Exception (f"Invalid file: ' { media_filepath } ' " )
792792
793793 if not self .ffprobe_check ():
794794 if self .error_messages_callback :
@@ -1580,10 +1580,10 @@ def __call__(self, media_filepath):
15801580
15811581 if not os .path .isfile (media_filepath ):
15821582 if self .error_messages_callback :
1583- self .error_messages_callback (f"The given file does not exist: { media_filepath } " )
1583+ self .error_messages_callback (f"The given file does not exist: ' { media_filepath } ' " )
15841584 else :
1585- print (f"The given file does not exist: { media_filepath } " )
1586- raise Exception (f"Invalid file: { media_filepath } " )
1585+ print (f"The given file does not exist: ' { media_filepath } ' " )
1586+ raise Exception (f"Invalid file: ' { media_filepath } ' " )
15871587
15881588 if not self .ffprobe_check ():
15891589 if self .error_messages_callback :
@@ -1767,10 +1767,10 @@ def __call__(self, media_filepath):
17671767
17681768 if not os .path .isfile (media_filepath ):
17691769 if self .error_messages_callback :
1770- self .error_messages_callback (f"The given file does not exist: { media_filepath } " )
1770+ self .error_messages_callback (f"The given file does not exist: ' { media_filepath } ' " )
17711771 else :
1772- print (f"The given file does not exist: { media_filepath } " )
1773- raise Exception (f"Invalid file: { media_filepath } " )
1772+ print (f"The given file does not exist: ' { media_filepath } ' " )
1773+ raise Exception (f"Invalid file: ' { media_filepath } ' " )
17741774
17751775 if not self .ffprobe_check ():
17761776 if self .error_messages_callback :
@@ -1790,7 +1790,7 @@ def __call__(self, media_filepath):
17901790 existing_languages = self .get_existing_subtitle_language (media_filepath )
17911791 if self .language in existing_languages :
17921792 # THIS 'print' THINGS WILL MAKE progresbar screwed up!
1793- #msg = (f"'{self.language}' subtitle stream already existed in {media_filepath}")
1793+ #msg = (f"'{self.language}' subtitle stream already existed in ' {media_filepath}' ")
17941794 #if self.error_messages_callback:
17951795 # self.error_messages_callback(msg)
17961796 #else:
@@ -1937,10 +1937,10 @@ def __call__(self, media_filepath):
19371937
19381938 if not os .path .isfile (media_filepath ):
19391939 if self .error_messages_callback :
1940- self .error_messages_callback (f"The given file does not exist: { media_filepath } " )
1940+ self .error_messages_callback (f"The given file does not exist: ' { media_filepath } ' " )
19411941 else :
1942- print (f"The given file does not exist: { media_filepath } " )
1943- raise Exception (f"Invalid file: { media_filepath } " )
1942+ print (f"The given file does not exist: ' { media_filepath } ' " )
1943+ raise Exception (f"Invalid file: ' { media_filepath } ' " )
19441944
19451945 if not self .ffprobe_check ():
19461946 if self .error_messages_callback :
@@ -2123,10 +2123,10 @@ def ffmpeg_check():
21232123
21242124 if not os .path .isfile (media_filepath ):
21252125 if error_messages_callback :
2126- error_messages_callback (f"The given file does not exist: { media_filepath } " )
2126+ error_messages_callback (f"The given file does not exist: ' { media_filepath } ' " )
21272127 else :
2128- print (f"The given file does not exist: { media_filepath } " )
2129- raise Exception (f"Invalid file: { media_filepath } " )
2128+ print (f"The given file does not exist: ' { media_filepath } ' " )
2129+ raise Exception (f"Invalid file: ' { media_filepath } ' " )
21302130 if not ffmpeg_check ():
21312131 if error_messages_callback :
21322132 error_messages_callback ("Cannot find ffmpeg executable" )
@@ -2197,10 +2197,10 @@ def ffprobe_check():
21972197
21982198 if not os .path .isfile (media_filepath ):
21992199 if error_messages_callback :
2200- error_messages_callback (f"The given file does not exist: { media_filepath } " )
2200+ error_messages_callback (f"The given file does not exist: ' { media_filepath } ' " )
22012201 else :
2202- print (f"The given file does not exist: { media_filepath } " )
2203- raise Exception (f"Invalid file: { media_filepath } " )
2202+ print (f"The given file does not exist: ' { media_filepath } ' " )
2203+ raise Exception (f"Invalid file: ' { media_filepath } ' " )
22042204 if not ffprobe_check ():
22052205 if error_messages_callback :
22062206 error_messages_callback ("Cannot find ffprobe executable" )
@@ -2282,10 +2282,10 @@ def ffmpeg_check():
22822282
22832283 if not os .path .isfile (media_filepath ):
22842284 if error_messages_callback :
2285- error_messages_callback (f"The given file does not exist: { media_filepath } " )
2285+ error_messages_callback (f"The given file does not exist: ' { media_filepath } ' " )
22862286 else :
2287- print (f"The given file does not exist: { media_filepath } " )
2288- raise Exception (f"Invalid file: { media_filepath } " )
2287+ print (f"The given file does not exist: ' { media_filepath } ' " )
2288+ raise Exception (f"Invalid file: ' { media_filepath } ' " )
22892289
22902290 if not ffprobe_check ():
22912291 if error_messages_callback :
@@ -2421,10 +2421,10 @@ def ffmpeg_check():
24212421
24222422 if not os .path .isfile (media_filepath ):
24232423 if error_messages_callback :
2424- error_messages_callback (f"The given file does not exist: { media_filepath } " )
2424+ error_messages_callback (f"The given file does not exist: ' { media_filepath } ' " )
24252425 else :
2426- print (f"The given file does not exist: { media_filepath } " )
2427- raise Exception (f"Invalid file: { media_filepath } " )
2426+ print (f"The given file does not exist: ' { media_filepath } ' " )
2427+ raise Exception (f"Invalid file: ' { media_filepath } ' " )
24282428
24292429 if not ffprobe_check ():
24302430 if error_messages_callback :
@@ -2452,7 +2452,7 @@ def ffmpeg_check():
24522452
24532453 existing_languages = get_existing_subtitle_language (media_filepath )
24542454 if language_code in existing_languages :
2455- #print(f"'{language_code}' subtitles stream already existed in {media_filepath}")
2455+ #print(f"'{language_code}' subtitles stream already existed in ' {media_filepath}' ")
24562456 return
24572457
24582458 else :
@@ -2571,10 +2571,10 @@ def ffmpeg_check():
25712571
25722572 if not os .path .isfile (media_filepath ):
25732573 if error_messages_callback :
2574- error_messages_callback (f"The given file does not exist: { media_filepath } " )
2574+ error_messages_callback (f"The given file does not exist: ' { media_filepath } ' " )
25752575 else :
2576- print (f"The given file does not exist: { media_filepath } " )
2577- raise Exception (f"Invalid file: { media_filepath } " )
2576+ print (f"The given file does not exist: ' { media_filepath } ' " )
2577+ raise Exception (f"Invalid file: ' { media_filepath } ' " )
25782578
25792579 if not ffprobe_check ():
25802580 if error_messages_callback :
@@ -2788,10 +2788,10 @@ def ffprobe_check():
27882788
27892789 if not os .path .isfile (media_filepath ):
27902790 if error_messages_callback :
2791- error_messages_callback (f"The given file does not exist: { media_filepath } " )
2791+ error_messages_callback (f"The given file does not exist: ' { media_filepath } ' " )
27922792 else :
2793- print (f"The given file does not exist: { media_filepath } " )
2794- raise Exception (f"Invalid file: { media_filepath } " )
2793+ print (f"The given file does not exist: ' { media_filepath } ' " )
2794+ raise Exception (f"Invalid file: ' { media_filepath } ' " )
27952795 if not ffprobe_check ():
27962796 if error_messages_callback :
27972797 error_messages_callback ("Cannot find ffprobe executable" )
0 commit comments