mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-25 21:20:15 +00:00
update doc strings to represent new module structure
This commit is contained in:
parent
0fc0cc8e87
commit
2fc0cbacf5
@ -1,9 +1,9 @@
|
|||||||
"""all API views"""
|
"""all API views"""
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
from home.src.download.thumbnails import ThumbManager
|
||||||
from home.src.ta.config import AppConfig
|
from home.src.ta.config import AppConfig
|
||||||
from home.src.ta.helper import UrlListParser
|
from home.src.ta.helper import UrlListParser
|
||||||
from home.src.download.thumbnails import ThumbManager
|
|
||||||
from home.tasks import extrac_dl, subscribe_to
|
from home.tasks import extrac_dl, subscribe_to
|
||||||
from rest_framework.authentication import (
|
from rest_framework.authentication import (
|
||||||
SessionAuthentication,
|
SessionAuthentication,
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
"""handle download queue"""
|
"""
|
||||||
|
Functionality:
|
||||||
|
- handle download queue
|
||||||
|
- linked with ta_dowload index
|
||||||
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
"""handle subscriptions"""
|
"""
|
||||||
|
Functionality:
|
||||||
|
- handle channel subscriptions
|
||||||
|
- handle playlist subscriptions
|
||||||
|
"""
|
||||||
|
|
||||||
import yt_dlp
|
import yt_dlp
|
||||||
from home.src.download import queue # partial import
|
from home.src.download import queue # partial import
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
"""
|
"""
|
||||||
functionality:
|
functionality:
|
||||||
- handle download and caching for thumbnails
|
- handle download and caching for thumbnails
|
||||||
|
- check for missing thumbnails
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
"""handle yt_dlp downloads"""
|
"""
|
||||||
|
functionality:
|
||||||
|
- handle yt_dlp
|
||||||
|
- build options and post processor
|
||||||
|
- download video files
|
||||||
|
- move to archive
|
||||||
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
"""holds es connection manager"""
|
"""
|
||||||
|
functionality:
|
||||||
|
- wrapper around requests to call elastic search
|
||||||
|
- reusable search_after to extract total index
|
||||||
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
"""setup and verify needed elastic indexes"""
|
"""
|
||||||
|
functionality:
|
||||||
|
- setup elastic index at first start
|
||||||
|
- verify and update index mapping and settings if needed
|
||||||
|
- backup and restore metadata
|
||||||
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
"""handle watch state"""
|
"""
|
||||||
|
functionality:
|
||||||
|
- handle watched state for videos, channels and playlists
|
||||||
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
"""handle single channel in index"""
|
"""
|
||||||
|
functionality:
|
||||||
|
- get metadata from youtube for a channel
|
||||||
|
- index and update in es
|
||||||
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
"""generic base class for indexing documents"""
|
"""
|
||||||
|
functionality:
|
||||||
|
- generic base class to inherit from for video, channel and playlist
|
||||||
|
"""
|
||||||
|
|
||||||
import math
|
import math
|
||||||
|
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
"""handle playlist"""
|
"""
|
||||||
|
functionality:
|
||||||
|
- get metadata from youtube for a playlist
|
||||||
|
- index and update in es
|
||||||
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
"""periodically refresh documents"""
|
"""
|
||||||
|
functionality:
|
||||||
|
- periodically refresh documents
|
||||||
|
- index and update in es
|
||||||
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
"""handle single video index"""
|
"""
|
||||||
|
functionality:
|
||||||
|
- get metadata from youtube for a video
|
||||||
|
- index and update in es
|
||||||
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
Functionality:
|
Functionality:
|
||||||
- read and write config
|
- read and write config
|
||||||
- load config variables into redis
|
- load config variables into redis
|
||||||
- needs to be a separate module to avoid circular import
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
"""interact with redis"""
|
"""
|
||||||
|
functionality:
|
||||||
|
- interact with redis
|
||||||
|
- hold temporary download queue in redis
|
||||||
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
"""
|
"""
|
||||||
Functionality:
|
Functionality:
|
||||||
- all views for home app
|
- all views for home app
|
||||||
- process post data received from frontend via ajax
|
- holds base classes to inherit from
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
Loading…
Reference in New Issue
Block a user