コミットグラフ

258 コミット

作成者 SHA1 メッセージ 日付
Samantaz Fox 049ed114fd
Separate video data fetching from parsing in videos.cr 2022-07-18 23:35:34 +02:00
Samantaz Fox c8765385df
Fetch data from next endpoint for scheduled streams 2022-07-14 17:56:53 +02:00
Samantaz Fox abc81ebd08
Merge pull request #3165 from SamantazFox/small-fixes-06-2022 2022-07-11 17:41:58 +02:00
Samantaz Fox beb9894c47
Merge pull request #3124 from iv-org/add-404-status-code 2022-07-06 22:05:01 +02:00
Samantaz Fox f7b1dcc271
Don't treat LIVE_STREAM_OFFLINE playability status as an error (fixes #3155) 2022-07-04 22:24:36 +02:00
Samantaz Fox eb226e1dcf
Remove all backend code related to dislikes 2022-07-04 22:24:23 +02:00
Samantaz Fox 3593f67eb6
Fix: related videos is a Hash(String, String) 2022-06-08 23:57:16 +02:00
Samantaz Fox 2b1e1b11a3
Fix CI: support BADGE_STYLE_TYPE_VERIFIED_ARTIST 2022-06-08 23:56:40 +02:00
Émilien Devos c201ea53ba Add 404 status code on all possible endpoints 2022-05-27 14:06:38 +00:00
Samantaz Fox 059796c60d
Merge pull request #3076 from SamantazFox/fix-3062-3063
Fix regressions of #2936
2022-05-04 22:29:10 +02:00
Samantaz Fox b84ce6a556
Fix "cast from Nil to Bool failed" 2022-05-01 21:11:12 +02:00
Samantaz Fox f5fb4c6c64
Apply 2859.diff 2022-05-01 21:10:43 +02:00
Samantaz Fox e690e166b0
Fix javascript:void(0) instead of youtu.be links 2022-05-01 18:48:08 +02:00
Samantaz Fox 7f2176d7fc
Add 'targetDurationSec' and 'maxDvrDurationSec' to videos API 2022-05-01 17:21:10 +02:00
Émilien Devos 595c3fb833
Revert "Youtube verification badge" (#3070) 2022-04-30 23:42:38 +02:00
Samantaz Fox 1d25c55c0b
Merge pull request #2859 from jonas-w/verified-badge
Youtube verification badge
2022-04-30 18:54:38 +02:00
Samantaz Fox b7f0b054b8
It's OTF, not OFT 2022-04-27 21:46:45 +02:00
Samantaz Fox 8144308aee
Add extra data to 'adaptiveFormats' in videos API 2022-04-27 00:22:34 +02:00
Samantaz Fox 0503d2a9f3
Fix 'adaptiveFormats' not available for livestreams in videos API 2022-04-27 00:22:10 +02:00
Samantaz Fox 135aaf56fd
Rescue DB errors in get_video() 2022-04-08 22:52:34 +02:00
Émilien Devos c152243b4d
new method for bypassing age restriction (#2996) 2022-03-30 19:52:39 +02:00
Jonas Wunderlich aa09bbe23d Done some refactoring 2022-03-13 20:16:30 +01:00
Jonas 6de449811d
Merge branch 'iv-org:master' into verified-badge 2022-02-25 19:29:12 +01:00
matthewmcgarvey ddf1e84f7c Raise exception if playability not ok, also handle missing related videos 2022-02-10 23:43:14 -06:00
Samantaz Fox febd785428
Add missing subtitle languages 2022-02-08 02:13:14 +01:00
jonas-w 00df3e2c40 Refactored code and added badges to Search but many dummies because of the way components/item works 2022-02-04 19:59:07 +01:00
jonas-w a2578ac6b4 Added Verified Badge to related videos 2022-02-04 17:55:22 +01:00
jonas-w 1fee636afa Added verification badge to video player and error with related_videos 2022-02-03 23:18:50 +01:00
Samantaz Fox eca8d2e7d7
Apply suggestions from code review
Co-authored-by: Matthew McGarvey <matthewmcgarvey14@gmail.com>
2022-02-03 03:55:43 +01:00
Samantaz Fox 1ec15dc073
Propagate related videos changes to API function 2022-02-03 01:44:11 +01:00
Samantaz Fox f124e8cf93
Fix parsing of related videos 2022-02-03 01:37:30 +01:00
Samantaz Fox d7ebd763f5
video parsing: add secondary_results root element 2022-02-03 01:37:30 +01:00
Samantaz Fox 99091e919c
video parsing: raise if major root element is missing 2022-02-03 01:37:30 +01:00
Samantaz Fox 6f4665588f
search.cr: use do/end rather than inline {} block 2022-01-28 15:54:38 +01:00
Samantaz Fox 63e1165936
videos.cr: use '.dig?()' where possible 2022-01-28 02:22:48 +01:00
Samantaz Fox 12b818a83c
Fix more 'Lint/ShadowingOuterLocalVar' warnings reported by ameba 2022-01-28 02:19:53 +01:00
Samantaz Fox 3bb7fbb2f1
Merge pull request #2719 from SamantazFox/batch-minor-fixes
Multiple minor fixes
2022-01-05 17:20:57 +01:00
Samantaz Fox 6c8a5a1e7f
Fix leading spaces being collapsed in descriptions
Fixes #1954
2022-01-05 03:32:54 +01:00
Samantaz Fox d74873fed1
Clean useless database arguments (4/5) 2022-01-04 17:15:43 +01:00
Samantaz Fox 998edba6f0
Move DB queries related to 'videos' in a separate module 2022-01-04 17:13:51 +01:00
bbielsa b90bceb2dc Fix formatting of preferences.cr and videos.cr 2021-12-15 19:38:58 +01:00
bbielsa 5abe7fe123 Rename 'remember_position' to 'save_player_pos' for clarity 2021-12-15 19:37:55 +01:00
bbielsa a6a0bbf398 Add remember_position field to the Preferences and VideoPreferences structs, and add a checkbox in the preferences page to toggle it 2021-12-15 19:37:55 +01:00
Samantaz Fox ee91effb7a
Merge pull request #2576 from SamantazFox/fix-locales-handling
Fix locales handling
2021-12-12 22:26:22 +01:00
Samantaz Fox f236a6872b
Merge pull request #2659 from SamantazFox/fix-likes-dislikes
Fix likes/dislikes
2021-12-06 03:52:38 +01:00
Samantaz Fox 4aa96ecab9
Use 'dig()' in 'find()' statements 2021-12-01 17:32:10 +01:00
Samantaz Fox 4436359d07
Use dig to get category contents
Co-authored-by: Matthew McGarvey <matthewmcgarvey14@gmail.com>
2021-11-28 23:44:37 +01:00
Samantaz Fox 91f8395222
Typo: missing '?' when looking for key in dislikes_button
Co-authored-by: Matthew McGarvey <matthewmcgarvey14@gmail.com>
2021-11-28 23:37:27 +01:00
Samantaz Fox ceb1feb350
likes/dislikes: better fallback management
'.to_i64?' instead of '.to_i64' returns nil rather than raising
an exception when it's done on an empty string.

In some rare cases, rating can be equal to 5. In this case, the
value of player_response[videoDetails][averageRating] is an
Int and not a Float.
2021-11-25 23:16:50 +01:00
Samantaz Fox 80a513baa5
Use new techniques to get (dis)likes back 2021-11-24 01:22:09 +01:00