Separate history into a class. #1
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Blocks
#8 Implement YouTube history parsing.
fedir/shadowtube
Reference: fedir/shadowtube#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
History needs to become it's own class to allow for easy addition of new history formats.
Here is the draft of the design specification of the new history classes and interfaces.
All classes related to history should be implemented in a separate file:
history.py
.Slight redesign, with inclusion of a
Video
class (that will be implemented in a moment).Succesfully separated
Unfortunately this will not suffice for closing the issue.
filename
is of typestr
, the function argument should befilename: str
)parse_history()
is not static (that is, you already need to have an instance ofHistory
to call it).pass
instead.parse_history()
needs implementation.Also, it seems like at least one implementation of the interface should be created for
parse_history()
to work, soFreeTubeHistory
should be copied fromparse_history()
inpreprocess.py
to close this issue.Fixed by #13.