aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* av-merge: Use tickEnd+1 when calculating segment time rangesJames Taylor2021-08-291-4/+5
| | | | | | | | | | | | | | | | | | | | | | tickEnd is inclusive, so two segments might have the following ticks: -- Segment 0 -- tickStart: 0 tickEnd: 44099 -- Segment 1 -- tickStart: 44100 tickEnd: 88199 When doing calculations in seconds about segment extent, there were gaps between segment 0's end and segment 1's beginning. This sometimes resulted in errors of not finding the corresponding segment index inside these gaps. Using (tickEnd+1)/this.sidx.timeScale is the correct method. Signed-off-by: Jesús <heckyel@hyperbola.info>
* av-merge: End stream correctly when last segments do not overlapJames Taylor2021-08-291-3/+2
| | | | | | | | | | | | In this video at 480p: https://www.youtube.com/watch?v=6bnanI9jXps There is an extremely tiny audio segment from 30.00018140589569 to 30.06981859410431 after the last video segment ends at 29.99998888888889. Call end of stream when we have all segments until the end, instead of calling it when we are playing the last segment. Signed-off-by: Jesús <heckyel@hyperbola.info>
* watch: Fix using_pair_sources being a list due to short-circuitingJames Taylor2021-08-291-1/+1
| | | | | | | | In the case where pair_sources is empty due to a playability error, using_pair_sources will be assigned to pair_sources (empty list) because of short circuiting. Make it a bool Signed-off-by: Jesús <heckyel@hyperbola.info>
* watch.html: Move loose inline javascript into watch.jsJesús2021-08-295-236/+209
| | | | | | | | The number of inline code blocks and the dependencies between them became unmanageable. From 9d96c07a3c2e68f1893634574c3be64e41a2c041 Mon Sep 17 00:00:00 2001 From: James Taylor <user234683@users.noreply.github.com>
* av-merge: Use console.warn and console.errorJames Taylor2021-08-291-2/+2
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* av-merge: change QuotaExceeded messages to warningsJames Taylor2021-08-291-2/+2
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* av-merge: buffer same duration of audio and videoJames Taylor2021-08-291-4/+10
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* av-merge: Make segment fetching message more usefulJames Taylor2021-08-291-2/+7
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* av-merge: call mediaSource.endOfStream() so player pauses at endJames Taylor2021-08-291-4/+35
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Prevent Firefox from remembering quality select on page refreshJames Taylor2021-08-291-1/+1
| | | | | | | | | The video quality is only changed when the quality selector changes. If it was changed and the user refreshes, Firefox remembers the selected value, but since no change event is fired, the select will display the wrong quality. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Integrate quality selection into PlyrJames Taylor2021-08-293-29/+117
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* fix missing data variableJesús2021-08-292-0/+15
|
* avmerge: Fix errors if close is called twiceJames Taylor2021-08-291-0/+4
| | | | | | | | | | | This can happen if the quality is changed from an avmerge source to an integrated source, and then changed back to an avmerge source Close is called the first change, but on the last change, it's called again because the avMerge object is still present, resulting in InvalidStateError Signed-off-by: Jesús <heckyel@hyperbola.info>
* avmerge: Remove obsolete shouldFetchNextSegment functionJames Taylor2021-08-291-9/+0
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* avmerge: Close streams to avoid errors while changing qualityJames Taylor2021-08-292-8/+41
| | | | | | | | | | | | | If a fetchRange network request finished after the quality was changed, there would be a "InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" because appendSegment was trying to append to the sourceBuffer that was unusable after the video src was changed to a new mediaSource. Adds a close method to the AVMerge class to properly clean and close everything so these sorts of errors won't happen. Signed-off-by: Jesús <heckyel@hyperbola.info>
* avmerge: Buffer 50 mb ahead in videoJames Taylor2021-08-291-14/+43
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Add video quality selectorJames Taylor2021-08-293-66/+134
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Add support for more qualities, merging video+audio using MSEJames Taylor2021-08-297-31/+575
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Revert "Add support for more qualities, merging video+audio using MSE"Jesús2021-08-297-575/+31
| | | | This reverts commit d56df02e7b1eba86baf511289208295b1f6c5a50.
* Add support for more qualities, merging video+audio using MSEJames Taylor2021-08-297-31/+575
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* [frontend]: fix current versionJesús2021-08-271-2/+2
|
* [frontend]: improve current versionJesús2021-08-271-1/+1
|
* Fix comment reply url extraction due to youtube changes0.1.0James Taylor2021-08-231-3/+7
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Fix comments extraction due to new response continuation key nameJames Taylor2021-08-231-2/+6
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* [pip]: fix dataclasses versionJesús2021-08-142-2/+2
|
* [pip]: bump packagesJesús2021-08-143-55/+49
|
* [opensearch]: improveJesús2021-08-143-3/+23
|
* [embed]: minor fixJesús2021-08-141-1/+1
|
* [embed]: fix sha512sumJesús2021-08-141-38/+2
|
* [librejs]: add mising plyr-start.jsJesús2021-08-141-0/+5
|
* [Frontend]: fix macroJesús2021-08-141-7/+7
|
* [get_app_version]: check git commandJesús2021-08-111-21/+24
|
* [comments]: pep8Jesús2021-08-101-4/+1
|
* [comments_info]: relax traceback messageJesús2021-08-101-2/+2
|
* [plyr]: minor fix syntaxJesús2021-08-091-1/+0
|
* [plyr]: updateJesús2021-08-096-3885/+3210
|
* [plyr]: Remove unimportant filesJesús2021-08-0911-40844/+0
|
* Fix description extraction in search resultsJames Taylor2021-08-091-1/+5
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Prefix youtube URLs in video descriptions and channel about pageJames Taylor2021-08-093-0/+26
| | | | | | Closes #75 Signed-off-by: Jesús <heckyel@hyperbola.info>
* Fix (dis)like, music list extraction due to YouTube changes (again)James Taylor2021-08-092-9/+56
| | | | | | | | | | | | | | | YouTube reverted the changes they made that prompted f9f5d5ba. In case they change their minds again, this adds support for both formats. The liberal_update and conservative_update functions needed to be modified to handle the cases of empty lists, so that a successfully extracted 'music_list': [{'Author':...},...] will not be overwritten by 'music_list': [] in the calls to liberal_dict_update. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Switch to new comments api now that old one is being disabledJames Taylor2021-08-094-31/+66
| | | | | | | | | | | watch_comment api periodically gives the error "Top level comments mweb servlet is turned down." The continuation items for the new api are in a different arrangement in the json, so changes were necessary to the extract_items function. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Comments: Fix exceptions when ctoken metadata are missing (None)James Taylor2021-08-092-3/+14
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* watch: determine video source based on quality, not actual heightJames Taylor2021-08-041-1/+2
| | | | | | | | | | For some phone videos, the dimensions of the video might be e.g. 360x640 instead of 640x360, which would be compared as though it was "640p", and thus no source would be chosen if default quality is 360p. Use the 'quality' entry which will always be 360 for that quality. Signed-off-by: Jesús <heckyel@hyperbola.info>
* pep 8Jesús2021-08-031-3/+1
|
* Remove static check resolution in TOR modeJesús2021-08-031-8/+3
|
* Fix max_resolution in TOR modeJesús2021-08-022-1/+2
| | | | some videos have 480p resolution, and if setting only 360p the player would have no video to play
* Revert "fix check max_resolution in TOR mode"Jesús2021-08-021-1/+1
| | | | This reverts commit cb9b6dadbd1c3e268e87cd8eac9097760b3526ab.
* fix check max_resolution in TOR modeJesús2021-08-021-1/+1
|
* New age restriction bypass method since get_video_info was disabledJames Taylor2021-07-282-31/+34
| | | | | | | From https://github.com/yt-dlp/yt-dlp/issues/574#issuecomment-887171136 Signed-off-by: Jesús <heckyel@hyperbola.info>
* Fix missing likes, dislikes, & music list due to Youtube changesJames Taylor2021-07-282-60/+121
| | | | | | | | | Also moves some microformat extraction from _extract_watch_info_mobile to extract_watch_info where it belongs. _extract_watch_info_mobile is really only for stuff visible on the page, and thus specialized for either mobile or desktop. Signed-off-by: Jesús <heckyel@hyperbola.info>