mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:39:49 +00:00
remove unused
This commit is contained in:
@@ -10,7 +10,6 @@ from datetime import datetime
|
|||||||
import requests
|
import requests
|
||||||
from channel.src import index as ta_channel
|
from channel.src import index as ta_channel
|
||||||
from common.src.env_settings import EnvironmentSettings
|
from common.src.env_settings import EnvironmentSettings
|
||||||
from common.src.es_connect import ElasticWrap
|
|
||||||
from common.src.helper import get_duration_sec, get_duration_str, randomizor
|
from common.src.helper import get_duration_sec, get_duration_str, randomizor
|
||||||
from common.src.index_generic import YouTubeItem
|
from common.src.index_generic import YouTubeItem
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
@@ -395,12 +394,6 @@ class YoutubeVideo(YouTubeItem, YoutubeSubtitle):
|
|||||||
|
|
||||||
return subtitles
|
return subtitles
|
||||||
|
|
||||||
def update_media_url(self):
|
|
||||||
"""update only media_url in es for reindex channel rename"""
|
|
||||||
data = {"doc": {"media_url": self.json_data["media_url"]}}
|
|
||||||
path = f"{self.index_name}/_update/{self.youtube_id}"
|
|
||||||
_, _ = ElasticWrap(path).post(data=data)
|
|
||||||
|
|
||||||
|
|
||||||
def index_new_video(youtube_id, video_type=VideoTypeEnum.VIDEOS):
|
def index_new_video(youtube_id, video_type=VideoTypeEnum.VIDEOS):
|
||||||
"""combined classes to create new video in index"""
|
"""combined classes to create new video in index"""
|
||||||
|
|||||||
Reference in New Issue
Block a user