aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/comments.py
Commit message (Collapse)AuthorAgeFilesLines
* Comments: Fix exceptions when ctoken metadata are missing (None)James Taylor2021-08-091-2/+13
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Capitalize name appJesús2021-06-101-1/+1
|
* Use extract_approx_int for comment likesJames Taylor2021-06-101-2/+3
| | | | | | | | Full digits no longer available Closes #64 Signed-off-by: Jesús <heckyel@hyperbola.info>
* minor fixJesús2021-02-261-2/+2
|
* Update max_replies when there's a continuation for the repliesJames Taylor2021-02-261-6/+15
| | | | | | | | | | | Because of the new ctoken methodology for getting comment replies, the more comments button automatically works inside the comment reply thread when there are more replies than the limit (250). This commit also updates the max_replies for that ctoken so the next 250 replies will be retrieved for the more comments ctoken. Signed-off-by: Jesús <heckyel@hyperbola.info>
* Fix comment repliesJames Taylor2021-02-261-39/+30
| | | | | | | | | | | | | Comment reply protobuf now requires the channel id of the uploader of the video. Otherwise the endpoint returns 500. Instead of making the protobuf ourselves and passing this data around through query parameters, just use the ctoken provided to us but modify the max_replies field from 10 to 250. Fixes #53 Signed-off-by: Jesús <heckyel@hyperbola.info>
* strip_non_ascii in comments-author-nameJesús2020-12-301-2/+5
|
* request_comments: remove obsolete retrying codeJames Taylor2020-12-211-11/+6
| | | | | | | | The issue that code was working around happened with an older request format (the ajax format) that was removed. The issue does not happen with the newer polymer format. Signed-off-by: Jesús <heckyel@hyperbola.info>
* video_comments: print error string in consoleJames Taylor2020-12-211-2/+4
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* pep8Jesús2020-12-151-22/+35
|
* Video comments: replace with error message if there is errorJames Taylor2020-11-291-15/+42
| | | | Such as 429 error, or an exception
* video comments: add link to open the comments page separatelyJames Taylor2020-11-291-1/+7
| | | | for situations where the comments failed to load
* Remove commenting system. Because:James Taylor2020-10-211-22/+3
| | | | | | | | - Actually using it will result in comments being shadowbanned, even those posted from Youtube's interfacs, because your account gets downranked since no analytics are present so it looks like a bot posting the comment. - It's been broken for awhile
* yt_data_extract: normalize thumbnail and author urlsJames Taylor2020-10-191-1/+1
| | | | | | | | | | for instance, urls that start with // become https:// adjustment required in comments.py because the url was left as a relative url in yt_data_extract by mistake and was using URL_ORIGIN prefix as fix. see #31
* Merge branch 'master' into optional_proxy_imagesJames Taylor2020-10-121-3/+5
|\
| * remove trimming of comment likeszrose5842020-10-111-9/+1
| |
| * add comments.jszrose5842020-10-071-4/+14
| |
* | settings.py: add 'proxy_images'zrose5842020-10-071-2/+2
|/
* Fix failure to parse comments when there's one from deleted channelJames Taylor2020-03-081-12/+23
| | | | | | Specifically, fix failures when any of the fields from the parsed comment are None, such as author, author_url, etc. (failure due to string concatenation when building urls).
* Extraction: Rewrite comment extraction, remove author_id and rename ↵James Taylor2019-12-191-5/+4
| | | | | | | | | author_channel_id to that, fix bug in extract_items author_id (an internal sql-like integer previously required for deleting and editing comments) has been removed by Youtube and is no longer required. Remove it for simplicity. Rename author_channel_id to author_id for consistency with other extraction attributes. extract_items returned None for items instead of [] for empty continuation responses. Fixes that.
* Extraction: Rewrite item_extraction for better error handling and ↵James Taylor2019-12-181-11/+11
| | | | readability, rename extracted names for more consistency
* Extraction: Move comment extraction to yt_data_extractJames Taylor2019-09-191-93/+6
|
* rename enable_comments amd enable_related_videosJames Taylor2019-08-011-1/+1
|
* Remove ad-hoc response saving from code, create a debug setting for fetch_urlJames Taylor2019-07-231-3/+1
|
* Convert comment posting system to flask frameworkJames Taylor2019-07-211-4/+9
|
* Convert comments to flask frameworkJames Taylor2019-07-191-280/+117
|
* Fix comment parsing error due to comments from deleted channelsJames Taylor2019-05-091-4/+11
|
* refactor common.py into 3 filesJames Taylor2019-02-211-29/+30
|
* Add newline to end of filesJames Taylor2019-01-061-1/+1
|
* rename env['fields'] to env['parameters'] and rename fields to parameters in ↵James Taylor2019-01-061-1/+1
| | | | general
* WSGI for simple non-path GET pagesJames Taylor2019-01-051-3/+4
|
* Add permalink to comment on timestampJames Taylor2019-01-021-1/+6
|
* Ability to delete commentsJames Taylor2018-12-311-3/+24
|
* Rename username to channel_id in more placesJames Taylor2018-12-311-2/+2
|
* Use channel id to uniquely identify accounts, not usernameJames Taylor2018-12-301-2/+2
|
* Fix username parameter not being sentJames Taylor2018-12-261-1/+1
|
* Added account selection to comment boxesJames Taylor2018-12-261-3/+17
|
* Ability to sort channel videos by oldest and by viewsJames Taylor2018-12-171-3/+3
|
* Use post/redirect/get method to prevent form resubmission for commentsJames Taylor2018-11-101-1/+1
|
* comments: fixed regression in previous comments bugfix commitJames Taylor2018-10-181-3/+4
|
* fix error parsing comments when a comment has all replies in a threadJames Taylor2018-10-161-5/+5
|
* add support for lc parameterJames Taylor2018-10-011-6/+10
|
* Display latency/read-time for comment retrievalJames Taylor2018-09-151-6/+4
|
* single comment retrieval function, remove left-over debug writingJames Taylor2018-09-071-2/+9
|
* Reorganize comment systemJames Taylor2018-09-011-26/+86
|
* Return comments by newest after posting top-level commentJames Taylor2018-08-311-3/+9
|
* Ability to reply to commentsJames Taylor2018-08-311-1/+6
|
* Fix blank comments causing parsing to failJames Taylor2018-08-301-1/+2
|
* Display video title & thumbnail on comment pagesJames Taylor2018-08-261-16/+40
|
* Comments: In title, indicate page number or that page contains repliesJames Taylor2018-08-261-2/+21
|