Skip to content

Commit

Permalink
fix: issue with Playlist processing
Browse files Browse the repository at this point in the history
missed a couple of named arguments at the initialization
of `Video`s inside of a `Playlist` resulting to errors when
processing a YouTube playlist.
  • Loading branch information
kouloumos committed Aug 13, 2024
1 parent 04c3a82 commit 61b3dfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .queue import commands as queue
6 changes: 3 additions & 3 deletions app/transcript.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class PostprocessOutput(TypedDict):


class Source:
def __init__(self, source_file, loc, local, title, date, summary, episode, tags, category, speakers, preprocess, link=None):
def __init__(self, source_file, loc, local, title, date, tags, category, speakers, preprocess, summary=None, episode=None, link=None):
# initialize source with arguments
self.save_source(source_file=source_file, loc=loc, local=local, title=title, summary=summary,
episode=episode, tags=tags, category=category, speakers=speakers, preprocess=preprocess, link=link)
Expand Down Expand Up @@ -386,8 +386,8 @@ def __config_source(self, entries):
self.videos: Video = []
for entry in entries:
if entry["title"] != '[Private video]':
source = Video(source=Source(entry["url"], self.loc, self.local, entry["title"], self.event_date,
self.tags, self.category, self.speakers, self.preprocess))
source = Video(source=Source(source_file=entry["url"], loc=self.loc, local=self.local, title=entry["title"], date=self.event_date,
tags=self.tags, category=self.category, speakers=self.speakers, preprocess=self.preprocess))
self.videos.append(source)


Expand Down

0 comments on commit 61b3dfa

Please sign in to comment.