This repository has been archived by the owner on Sep 15, 2020. It is now read-only.
liveleak: change regex to match changed html from liveleak #153
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Match string changed from res= to label=
I noticed one video with a label="360p". Existing code is matching only label="SD" and label="HD". I changed the SD regex to match either SD or 360p. I'd imagine it may be possible for videos to have both SD and 360p versions listed, and this may match the lesser quality one, but I'd think it'd be rare. (I didn't see any examples of that in a few hundred videos.) Doesn't seem worth the effort of coding another tier. You don't want to see the example video, trust me on this one.
I noticed that it's possible for the video on a liveleak page to be an embedded youtube video. INCEPTION. I'm leaving that one alone. Here is an example, for the record: https://www.liveleak.com/view?i=196_1519606734&ajax=1