Skip to content

Commit

Permalink
load youtube channels from www.youtube.com/{key}
Browse files Browse the repository at this point in the history
Some channel return a 404 wwith the /c/ prefix
(ie. https://www.youtube.com/c/@relaxingmusicandvibes)
  • Loading branch information
biolds committed Jan 15, 2023
1 parent 069d14d commit de1a51a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Empty file modified tubesync/manage.py
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions tubesync/sync/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ class Source(models.Model):
}
# Format to use to display a URL for the source
URLS = {
SOURCE_TYPE_YOUTUBE_CHANNEL: 'https://www.youtube.com/c/{key}',
SOURCE_TYPE_YOUTUBE_CHANNEL: 'https://www.youtube.com/{key}',
SOURCE_TYPE_YOUTUBE_CHANNEL_ID: 'https://www.youtube.com/channel/{key}',
SOURCE_TYPE_YOUTUBE_PLAYLIST: 'https://www.youtube.com/playlist?list={key}',
}
# Format used to create indexable URLs
INDEX_URLS = {
SOURCE_TYPE_YOUTUBE_CHANNEL: 'https://www.youtube.com/c/{key}/videos',
SOURCE_TYPE_YOUTUBE_CHANNEL: 'https://www.youtube.com/{key}/videos',
SOURCE_TYPE_YOUTUBE_CHANNEL_ID: 'https://www.youtube.com/channel/{key}/videos',
SOURCE_TYPE_YOUTUBE_PLAYLIST: 'https://www.youtube.com/playlist?list={key}',
}
Expand Down

0 comments on commit de1a51a

Please sign in to comment.