Updated yt_dlp version; added extremly basic dumb cache setup in thumbnailer; moved build and script as well as deb folder to build
This commit is contained in:
@@ -192,7 +192,10 @@ class FFmpegPostProcessor(PostProcessor):
|
||||
|
||||
@property
|
||||
def available(self):
|
||||
return bool(self._ffmpeg_location.get()) or self.basename is not None
|
||||
# If we return that ffmpeg is available, then the basename property *must* be run
|
||||
# (as doing so has side effects), and its value can never be None
|
||||
# See: https://github.com/yt-dlp/yt-dlp/issues/12829
|
||||
return self.basename is not None
|
||||
|
||||
@property
|
||||
def executable(self):
|
||||
@@ -747,8 +750,8 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
|
||||
add('track', 'track_number')
|
||||
add('artist', ('artist', 'artists', 'creator', 'creators', 'uploader', 'uploader_id'))
|
||||
add('composer', ('composer', 'composers'))
|
||||
add('genre', ('genre', 'genres'))
|
||||
add('album')
|
||||
add('genre', ('genre', 'genres', 'categories', 'tags'))
|
||||
add('album', ('album', 'series'))
|
||||
add('album_artist', ('album_artist', 'album_artists'))
|
||||
add('disc', 'disc_number')
|
||||
add('show', 'series')
|
||||
|
||||
@@ -42,6 +42,9 @@ class MetadataParserPP(PostProcessor):
|
||||
to a regex like
|
||||
'(?P<title>.+)\ \-\ (?P<artist>.+)'
|
||||
"""
|
||||
if re.fullmatch(r'\w+', fmt):
|
||||
# convert a single field name into regex pattern that matches the entire input
|
||||
return rf'(?s)(?P<{fmt}>.+)'
|
||||
if not re.search(r'%\(\w+\)s', fmt):
|
||||
return fmt
|
||||
lastpos = 0
|
||||
|
||||
@@ -27,6 +27,7 @@ class SponsorBlockPP(FFmpegPostProcessor):
|
||||
'filler': 'Filler Tangent',
|
||||
'interaction': 'Interaction Reminder',
|
||||
'music_offtopic': 'Non-Music Section',
|
||||
'hook': 'Hook/Greetings',
|
||||
**NON_SKIPPABLE_CATEGORIES,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user