Skip to content

Commit

Permalink
Update audio format selection
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWicklowWolf authored Oct 31, 2024
1 parent d337be8 commit 1bc0ef8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ChannelTube.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ def get_list_of_videos_from_youtube(self, channel, current_channel_files):
video_title = video["title"]
video_link = video["url"]
duration = 0 if not video["duration"] else video["duration"]

youtube_video_id = video["id"]
live_status = video["live_status"]

Expand Down Expand Up @@ -366,7 +365,7 @@ def download_items(self, item_list, channel_folder_path, channel):
merge_output_format = selected_ext
else:
selected_ext = "m4a"
selected_format = f"bestaudio[ext={selected_ext}]/{self.audio_format_id}/bestaudio[acodec=aac]/bestaudio"
selected_format = f"{self.audio_format_id}/bestaudio[acodec=aac]/bestaudio"
merge_output_format = None
post_processors.append(
{
Expand Down

0 comments on commit 1bc0ef8

Please sign in to comment.