Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rework quality #5

Merged
merged 2 commits into from
Feb 8, 2015
Merged

rework quality #5

merged 2 commits into from
Feb 8, 2015

Conversation

ingwinlu
Copy link
Owner

@ingwinlu ingwinlu commented Feb 8, 2015

rework how qualities in M3UPlaylist are handled.

  • find best match quality over distance between selected/available qualities
  • make sure playlist has at least one parsed value else throw an ValueError
  • add test for valueerror

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.45%) to 94.66% when pulling a1ee4ba4da512e654a8d5b8043d0d4ba05dd587d on rework_quality into 0a9dbdf on master.

@ingwinlu ingwinlu mentioned this pull request Feb 8, 2015
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.45%) to 94.66% when pulling 9464750e160381a65a90cd011e9fd5e824251a38 on rework_quality into 0a9dbdf on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.31%) to 95.8% when pulling 2b1c233cb2146774c85195ecaa7ecad225a54f66 on rework_quality into 0a9dbdf on master.

@MrSprigster
Copy link
Contributor

Looks good to me.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.31%) to 95.8% when pulling f9a5ca1b42d30963b43ea4d912e7a3a4595c938d on rework_quality into 0a9dbdf on master.

@MrSprigster
Copy link
Contributor

Is there currently an instance where the nearest available quality will be used as opposed to the best available?

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.31%) to 95.8% when pulling 00ffd5f on rework_quality into 0a9dbdf on master.

@ingwinlu
Copy link
Owner Author

ingwinlu commented Feb 8, 2015

@MrSprigster you mean a test case like this: 3937f48 ?

on a more general note: i am not aware if twitch ever produces such output, i.e. restricting lower qualities but offering better ones without.

i am hesitant to just deliver the 'best' available quality in such a case though, since if you selected a lower quality you do that because you have a reason to, so an available lower quality is probably prefered to a good one

@MrSprigster
Copy link
Contributor

It's definitely an advantage to have that ability within the addon just in case Twitch decides to start offering a wider range of qualities to streamers. However unfortunately I don't anticipate this enhancement being utilised any time soon simply due to the way Twitch does things :(.

👍 for the good coding practice though. Hopefully Twitch will follow suit at some point.

Sprig

ingwinlu added a commit that referenced this pull request Feb 8, 2015
rework quality selection, resolve #4
@ingwinlu ingwinlu merged commit e9ca8c4 into master Feb 8, 2015
@MrSprigster
Copy link
Contributor

Drop me a pull request when you're ready and I'll merge.

Thanks again for your work on this,

Sprig 💯

@ingwinlu ingwinlu deleted the rework_quality branch February 8, 2015 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants