Fixed directory Name

directory had video file name, fixed it.
master
Xonshiz 2021-01-13 20:52:20 +05:30
parent 8d4137ff85
commit 2c635230a7
2 changed files with 2 additions and 5 deletions

View File

@ -5,9 +5,6 @@ import os
import sys
sys.path.append("..")
from movies import *
# from hulusubs_dl.__version__ import __version__
# from hulusubs_dl.cust_utils import *
# from hulusubs_dl.hulu_subs_dl import HuluSubsDl
if __name__ == "__main__":
Movies(sys.argv[1:], os.getcwd())

View File

@ -23,7 +23,7 @@ class Movies:
video_file_name = None
base_page_content = None
youtube_dl_command = None
url = 'https://new-movies123.co/tv-series/deutschland-89-season-1/UyTSbjuh/917zdf25/abfjn1jk-watch-online-for-free.html'
# url = 'https://new-movies123.co/tv-series/deutschland-89-season-1/UyTSbjuh/917zdf25/abfjn1jk-watch-online-for-free.html'
resolution = '1080'
while not url:
url = input("Enter Movie URL : ").strip()
@ -88,7 +88,7 @@ class Movies:
subtitle_content = browser_instance.get_request(subtitle_src, text_only=True)
series_name = url.split('/')[4]
if not path_util.file_exists('dist', os.sep + series_name):
path_created = path_util.create_paths('dist' + os.sep + series_name + os.sep + video_file_name)
path_created = path_util.create_paths('dist' + os.sep + series_name + os.sep + current_episode_name)
if path_created:
file_written = utils.create_file_binary_mode(path_created, os.sep + file_name, subtitle_content)
if file_written: