refactoring #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "barbadev"
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?
Getting lost trying to implement #11, I did do some helpfull (although, quasi-total) refactoring. I will push (probably not beofre Xmass) some of them over here for your consideration.
requestslibrary instead ofurllib88ffe31a94d755bca5ebto4c518993efSomething important I failed to mention was done in
ca0a792617:We use to offer rendition choosing right after the
apicall, before we download the appropriate master playlist to figure out the available variants.The problem with that is that ArteTV's codes for the renditions (given by the
api) do not necessarly include complete languages information (if it is not French or German), for instance a original audio track in portugese would show asVOEU-(as in "EUropean"). The actuall mention of the Portugese would only show up in the master playlist.So, the new implementation actually downloads all master playlists straight after the
apicall. This is a bit wastefull, but I figured it was necessary to provide quality interaction with the user.Bonus? Now when we first prompt the user for rendition choice, we actually already know the available variants available, maybe we make use of that fact in the future...
Next step is to update/rewrite the
READMEto reflect the changes... then I'll take theWIPoff.WIP: refactoringto refactoringPull request closed