GilbertClaus commited on
Commit
3260469
·
1 Parent(s): b62586b
Files changed (1) hide show
  1. rule34.py +4 -3
rule34.py CHANGED
@@ -90,14 +90,15 @@ def get_info_rule34(link):
90
  def rule34(link):
91
  video_info = ""
92
  video_title, artist, video_url, thumbnail_url = get_info_rule34(link)
 
93
  directory = f"/home/user/app/Hasil Download/Rule34/{artist}"
94
  if not os.path.exists(directory):
95
  os.makedirs(directory)
96
  # Menentukan nama file thumbnail
97
- thumbnail_file = download_file(thumbnail_url, video_title, directory)
98
- video_file = download_file(video_url, video_title, directory)
99
 
100
  video_info = f"Nama Channel: {artist}\n"
101
  video_info += f"Judul Video: {video_title}\n"
102
 
103
- return video_file, video_title, video_info, thumbnail_file
 
90
  def rule34(link):
91
  video_info = ""
92
  video_title, artist, video_url, thumbnail_url = get_info_rule34(link)
93
+ judul = f"{artist} - {video_title}"
94
  directory = f"/home/user/app/Hasil Download/Rule34/{artist}"
95
  if not os.path.exists(directory):
96
  os.makedirs(directory)
97
  # Menentukan nama file thumbnail
98
+ thumbnail_file = download_file(thumbnail_url, judul, directory)
99
+ video_file = download_file(video_url, judul, directory)
100
 
101
  video_info = f"Nama Channel: {artist}\n"
102
  video_info += f"Judul Video: {video_title}\n"
103
 
104
+ return video_file, judul, video_info, thumbnail_file