Samantaz Fox
7f2176d7fc
Add 'targetDurationSec' and 'maxDvrDurationSec' to videos API
2022-05-01 17:21:10 +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
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
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
Samantaz Fox
319587e2f1
extract_video_info: make sure that the Android player response is valid
2021-11-21 17:34:17 +01:00
Samantaz Fox
139786b9ef
i18n: pass only the ISO code string to 'translate()'
...
Don't use the whole Hash everywhere.
Also fall back nicely to english string if no translation exists.
2021-11-21 01:50:11 +01:00
Samantaz Fox
33780f1995
Also fix 'to_json' in struct Video
2021-10-29 16:26:35 +02:00
syeopite
e91421253e
Fix Style/VerboseBlock issues
2021-10-25 01:12:26 -07:00
syeopite
35d15c7c2b
Fix Style/VariableNames issues
2021-10-25 01:12:26 -07:00
syeopite
be1a43a337
Manually extract category refactor from 1b569bbc99207cae7c20aa285f42477ae361dd30
...
Also fixes some errors caused by cherry-picking
2021-09-24 21:07:07 -07:00
syeopite
50c8afb525
Handle equirectangular projections for VR ( #2379 )
2021-09-10 07:42:39 +00:00
Émilien Devos
b5d2eb5c70
fetch with innertube api when video is unavailable ( #2329 )
...
+ rename some client type to better names
+ fix thirdParty hack
2021-08-16 10:41:16 -07:00
syeopite
25362f16a0
Readd paid attribute for videos ( #2330 )
2021-08-15 10:38:30 +02:00
Émilien Devos
c06a20e085
Switch to innertube API for videos ( #2220 )
...
Commit history:
- Switch to innertube API for videos
- fix hardcoded strings + fix bypass geo-restriction
2021-08-13 20:29:43 +00:00
Émilien Devos
12b46bbd41
switch to innertube API for about channels ( #2255 )
2021-08-12 16:00:26 -07:00
syeopite
cea38de4ad
Check for existance of "adaptiveFormats" in videos
...
Combined from commits:
- Check for existance of "adaptiveFormats" in videos
- Remove usage of ternary conditional
2021-08-12 19:26:50 +00:00
syeopite
39110ad21c
Use struct for caption object
2021-07-11 16:17:22 -07:00
syeopite
57bb8c610a
Use embed stream pull as fallback for gated videos
2021-07-02 00:25:00 -07:00
syeopite
54b19a04bb
Fix caption parsing on age restricted videos
2021-06-27 08:35:28 -07:00
syeopite
ca4df29670
Wrap comment
2021-06-25 14:14:41 -07:00
syeopite
7da0b2fd7f
Switch from URI::Params.new to URI::Params.encode
2021-06-25 12:14:21 -07:00
syeopite
aa55e67389
Fix extraction of age restricted videos
2021-06-25 07:51:51 -07:00
syeopite
5ba9a1f87d
Fix lint
2021-05-23 09:22:37 -07:00
syeopite
6e6f4d5a37
Allow configurable support of interactive 360 vid
2021-05-23 09:22:37 -07:00