mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 06:26:37 +00:00
Remove the /channel/ from the URL
This commit is contained in:
parent
5546c5dad2
commit
25892388a1
@ -297,11 +297,11 @@ class ValidateSourceView(FormView):
|
|||||||
'@' == self.key[0]
|
'@' == self.key[0]
|
||||||
)
|
)
|
||||||
if use_channel_id:
|
if use_channel_id:
|
||||||
source_type = self.source_type
|
|
||||||
self.source_type_str = 'youtube-channel-id'
|
self.source_type_str = 'youtube-channel-id'
|
||||||
self.source_type = self.source_types.get(self.source_type_str, None)
|
self.source_type = self.source_types.get(self.source_type_str, None)
|
||||||
|
url = Source.create_index_url(self.source_type, self.key, 'videos')
|
||||||
self.key = youtube.get_channel_id(
|
self.key = youtube.get_channel_id(
|
||||||
Source.create_index_url(source_type, self.key, 'videos')
|
url.replace('/channel/', '/')
|
||||||
)
|
)
|
||||||
for field in fields_to_populate:
|
for field in fields_to_populate:
|
||||||
if field == 'source_type':
|
if field == 'source_type':
|
||||||
|
Loading…
Reference in New Issue
Block a user