Skip to content

Commit

Permalink
Proofreading
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Apr 22, 2024
1 parent 6dcafbb commit a46b385
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions avtdl/plugins/youtube/youtube_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ChannelNotifyFilterConfig(EmptyFilterConfig):
@Plugins.register('filter.channel.notify', Plugins.kind.ACTOR_ENTITY)
class ChannelNotifyFilterEntity(FilterEntity):
prior: Union[int, datetime.timedelta] = 10
"""output record this many minutes before the live start"""
"""output a record this many minutes before the scheduled start of a live broadcast"""
include_ongoing: bool = False
"""whether currently live streams should be included"""

Expand All @@ -38,13 +38,13 @@ def to_timedelta(cls, minutes: Union[int, datetime.timedelta]) -> datetime.timed
@Plugins.register('filter.channel.notify', Plugins.kind.ACTOR)
class ChannelNotifyFilter(Filter):
"""
Hold upcoming streams records until the start time
Hold upcoming stream's records until the start time
Determines whether a record represents a Youtube livestream or premiere
with scheduled time, and, if so, hold it waiting until the time comes
instead of passing down the chain immediately.
Determines whether a record represents a Youtube livestream/Premiere
with a scheduled time, and holds it waiting until the time comes
instead of passing down the chain immediately if needed.
If record is not an upcoming Youtube livestream, it gets silently dropped.
If the record is not an upcoming Youtube livestream, it gets silently dropped.
"""

def __init__(self, config: ChannelNotifyFilterConfig, entities: Sequence[ChannelNotifyFilterEntity]):
Expand Down

0 comments on commit a46b385

Please sign in to comment.