syeopite
a027fbf7af
Rewrite extract_item and extract_items functions
...
This commit completely rewrites the extract_item and extract_items
function. Before this commit these two function were an unreadable
mess. The extract_item function was a lengthy if-elsif chain
while the extract_items function contained an incomprehensible
mess of .try, else and ||.
With this commit both of these functions have been pulled into a
separate file with the internal logic being moved to a few classes.
This significantly reduces the size of these two methods, enhances
readability and makes adding new extraction/parse rules much simpler.
See diff for details.
2021-06-24 08:52:47 -07:00
syeopite
48a518b252
Add check for empty chan category in featured chan
2021-06-24 08:52:47 -07:00
syeopite
55762f0c2c
Use responsive pure css grids in about.ecr
2021-06-24 08:52:47 -07:00
syeopite
8a9b3a19a2
Add buffer btwn content and footer on some pages
2021-06-24 08:52:47 -07:00
syeopite
f0c74a9429
Overhaul footer design. See #2032
2021-06-24 08:52:47 -07:00
syeopite
f5a0a6b899
Move channel views to separate directory
2021-06-24 08:52:47 -07:00
syeopite
e9dcac9bd4
Add support for featured channels page
2021-06-24 08:52:46 -07:00
syeopite
a777eda66a
Change AboutChannel tabs to hash of name and param
...
This is to help fetch tab contents from the browse endpoint of youtube
later on.
2021-06-24 08:51:02 -07:00
syeopite
4d1297f257
Fix uncentered channel banner image
2021-06-24 08:51:02 -07:00
syeopite
a566a45571
Add channel country and external links to API
2021-06-24 08:51:02 -07:00
syeopite
8fad19d805
Extract primary channel routes from invidious.cr
...
Also removes timedtext_video stub since all it does is redirect to the
homepage. However, Invidious's 404 handler already does this.
2021-06-24 08:51:02 -07:00
syeopite
54d964a824
Fix locale consistency for About page
2021-06-24 08:50:55 -07:00
syeopite
90d863ec9b
Reduce space between extern link header and items
2021-06-24 08:39:27 -07:00
syeopite
62f487d3c3
Handle missing country detail in channel about page
2021-06-24 08:39:27 -07:00
syeopite
01e04340cd
Add links widget to channel banner + tiny refactor
2021-06-24 08:39:27 -07:00
syeopite
710b269d30
Move channel specific CSS to separate file
2021-06-24 08:39:27 -07:00
syeopite
35d94f9ed3
Change channel banner to be CSS background image
...
This is to allow for contents to be placed on the channel banner itself;
something that is required for the links widget shown on Youtube.
2021-06-24 08:39:27 -07:00
syeopite
ae07c7694f
Fetch external links favicon and add to about page
2021-06-24 08:39:27 -07:00
syeopite
af385663c4
Add about tab to channels
2021-06-24 08:39:26 -07:00
syeopite
1feccf7e53
Add logic to parse external chan links and country
2021-06-24 08:39:03 -07:00
syeopite
d487ee1e15
Fix improper URL formatting for channel sort
2021-06-24 08:39:03 -07:00
syeopite
82d51429c1
Improve styling for search filters
2021-06-24 08:39:02 -07:00
syeopite
bc273c75c3
Fix typo
2021-06-24 08:36:14 -07:00
syeopite
3d630dd387
Add search icon to navbar searchbar
2021-06-24 08:36:14 -07:00
syeopite
05adaf7315
Refactor channel tab templates
2021-06-24 08:36:13 -07:00
syeopite
e3245bd311
Move trending tabs to left like in channels
2021-06-24 08:34:18 -07:00
syeopite
482f123df8
Remove broken view as playlist feature in trending
2021-06-24 08:34:18 -07:00
syeopite
c6466e6ada
Disallow removing filters from sort by column
2021-06-24 08:34:18 -07:00
syeopite
7276edddf8
Add search bar to channel page.
...
Closes #1923
2021-06-24 08:34:17 -07:00
syeopite
d7901a99f8
Add ability to remove search filters from UI
2021-06-24 08:34:17 -07:00
syeopite
46df266c36
Fix search filters being overwritten by others
2021-06-24 08:33:33 -07:00
syeopite
c68ba62eae
Move search.ecr specific css to another file
2021-06-24 08:31:46 -07:00
syeopite
1bb8429fe5
Declutter search bar to only show search query
...
This commit changes the way search filters are parsed. Instead of
directly appending the data into the search query and creating k:v
pairs, all of the search filters are now a URL parameter. This results
in a clear look overall and hides much of the logic from the end user.
Closes #1969
2021-06-24 08:31:45 -07:00
syeopite
ff43a47716
Change dropdown into normal tabs
2021-06-24 08:29:25 -07:00
syeopite
1a3824a5af
Refactor channel sorting links to dropdown
2021-06-24 08:29:25 -07:00
syeopite
93ee81a468
Use purecss menus for channel tabs
2021-06-24 08:29:24 -07:00
syeopite
e34f375cf5
Update styling for buttons and dark-theme
2021-06-24 08:28:49 -07:00
syeopite
765041f1b8
Use pure-menu-horizontal for trending tabs
2021-06-24 08:28:41 -07:00
Samantaz Fox
5a8825d016
Fix quoting of 'none' in CSP header
...
The keyword 'none' must be surrounded by single quotes.
Regression introduced by #2168 .
2021-06-20 18:43:00 +02:00
Émilien Devos
4803285e50
update video URL for recaptcha detection
2021-06-19 17:38:49 +00:00
syeopite
349f073b8e
Remove unnecessary "Welcome, " on username display
2021-06-19 06:03:50 -07:00
Mateusz Makowski
90c907710c
Display username in header
2021-06-19 04:58:42 -07:00
syeopite
cb525af0a2
Connect to api.invidious.io with https
2021-06-19 04:17:49 -07:00
syeopite
09f7e38eed
Disable automatic instance redirection by default
2021-06-19 04:17:49 -07:00
syeopite
7c49a0ba7a
Rephrase auto instance redirect preference
2021-06-19 04:17:49 -07:00
syeopite
45e57f1ad3
Refactor fetch_random_instance
2021-06-19 04:17:49 -07:00
syeopite
eb911de928
Handle if inst. api is down for rand inst fetch
2021-06-19 04:17:49 -07:00
syeopite
b393e31b76
Fix inst. fetching for inst w/ disabled stats/err
2021-06-19 04:17:49 -07:00
syeopite
4a095eb98e
Fix <hr> styling on empty search page
2021-06-19 04:17:49 -07:00
syeopite
d793d4ba78
Add switch invidious instance btn to all chan tabs
2021-06-19 04:17:49 -07:00