import base64
import datetime
import importlib
import json
import os.path
import re
import shutil
import signal
from math import floor
from urllib.parse import unquote
import cn2an
from flask_login import logout_user, current_user
from werkzeug.security import generate_password_hash
import log
from app.brushtask import BrushTask
from app.conf import SystemConfig, ModuleConf
from app.doubansync import DoubanSync
from app.downloader import Downloader
from app.downloader.client import Qbittorrent, Transmission
from app.filetransfer import FileTransfer
from app.filter import Filter
from app.helper import DbHelper, ProgressHelper, ThreadHelper, \
MetaHelper, DisplayHelper, WordsHelper, CookieCloudHelper
from app.indexer import Indexer
from app.media import Category, Media, Bangumi, DouBan
from app.media.meta import MetaInfo, MetaBase
from app.mediaserver import MediaServer
from app.message import Message, MessageCenter
from app.rss import Rss
from app.rsschecker import RssChecker
from app.scheduler import stop_scheduler
from app.sites import Sites
from app.sites.sitecookie import SiteCookie
from app.subscribe import Subscribe
from app.subtitle import Subtitle
from app.sync import Sync, stop_monitor
from app.torrentremover import TorrentRemover
from app.speedlimiter import SpeedLimiter
from app.utils import StringUtils, EpisodeFormat, RequestUtils, PathUtils, \
SystemUtils, ExceptionUtils, Torrent
from app.utils.types import RmtMode, OsType, SearchType, DownloaderType, SyncType, MediaType, MovieTypes, TvTypes
from config import RMT_MEDIAEXT, TMDB_IMAGE_W500_URL, RMT_SUBEXT, Config
from web.backend.search_torrents import search_medias_for_web, search_media_by_message
from web.backend.web_utils import WebUtils
class WebAction:
dbhelper = None
_actions = {}
TvTypes = ['TV', '电视剧']
def __init__(self):
self.dbhelper = DbHelper()
self._actions = {
"sch": self.__sch,
"search": self.__search,
"download": self.__download,
"download_link": self.__download_link,
"download_torrent": self.__download_torrent,
"pt_start": self.__pt_start,
"pt_stop": self.__pt_stop,
"pt_remove": self.__pt_remove,
"pt_info": self.__pt_info,
"del_unknown_path": self.__del_unknown_path,
"rename": self.__rename,
"rename_udf": self.__rename_udf,
"delete_history": self.__delete_history,
"logging": self.__logging,
"version": self.__version,
"update_site": self.__update_site,
"get_site": self.__get_site,
"del_site": self.__del_site,
"get_site_favicon": self.__get_site_favicon,
"restart": self.__restart,
"update_system": self.update_system,
"reset_db_version": self.__reset_db_version,
"logout": self.__logout,
"update_config": self.__update_config,
"update_directory": self.__update_directory,
"add_or_edit_sync_path": self.__add_or_edit_sync_path,
"get_sync_path": self.__get_sync_path,
"delete_sync_path": self.__delete_sync_path,
"check_sync_path": self.__check_sync_path,
"remove_rss_media": self.__remove_rss_media,
"add_rss_media": self.__add_rss_media,
"re_identification": self.re_identification,
"media_info": self.__media_info,
"test_connection": self.__test_connection,
"user_manager": self.__user_manager,
"refresh_rss": self.__refresh_rss,
"refresh_message": self.__refresh_message,
"delete_tmdb_cache": self.__delete_tmdb_cache,
"movie_calendar_data": self.__movie_calendar_data,
"tv_calendar_data": self.__tv_calendar_data,
"modify_tmdb_cache": self.__modify_tmdb_cache,
"rss_detail": self.__rss_detail,
"truncate_blacklist": self.truncate_blacklist,
"truncate_rsshistory": self.truncate_rsshistory,
"add_brushtask": self.__add_brushtask,
"del_brushtask": self.__del_brushtask,
"brushtask_detail": self.__brushtask_detail,
"add_downloader": self.__add_downloader,
"delete_downloader": self.__delete_downloader,
"get_downloader": self.__get_downloader,
"name_test": self.__name_test,
"rule_test": self.__rule_test,
"net_test": self.__net_test,
"add_filtergroup": self.__add_filtergroup,
"restore_filtergroup": self.__restore_filtergroup,
"set_default_filtergroup": self.__set_default_filtergroup,
"del_filtergroup": self.__del_filtergroup,
"add_filterrule": self.__add_filterrule,
"del_filterrule": self.__del_filterrule,
"filterrule_detail": self.__filterrule_detail,
"get_site_activity": self.__get_site_activity,
"get_site_history": self.__get_site_history,
"get_recommend": self.get_recommend,
"get_downloaded": self.get_downloaded,
"get_site_seeding_info": self.__get_site_seeding_info,
"clear_tmdb_cache": self.__clear_tmdb_cache,
"check_site_attr": self.__check_site_attr,
"refresh_process": self.__refresh_process,
"restory_backup": self.__restory_backup,
"start_mediasync": self.__start_mediasync,
"mediasync_state": self.__mediasync_state,
"get_tvseason_list": self.__get_tvseason_list,
"get_userrss_task": self.__get_userrss_task,
"delete_userrss_task": self.__delete_userrss_task,
"update_userrss_task": self.__update_userrss_task,
"get_rssparser": self.__get_rssparser,
"delete_rssparser": self.__delete_rssparser,
"update_rssparser": self.__update_rssparser,
"run_userrss": self.__run_userrss,
"run_brushtask": self.__run_brushtask,
"list_site_resources": self.__list_site_resources,
"list_rss_articles": self.__list_rss_articles,
"rss_article_test": self.__rss_article_test,
"list_rss_history": self.__list_rss_history,
"rss_articles_check": self.__rss_articles_check,
"rss_articles_download": self.__rss_articles_download,
"add_custom_word_group": self.__add_custom_word_group,
"delete_custom_word_group": self.__delete_custom_word_group,
"add_or_edit_custom_word": self.__add_or_edit_custom_word,
"get_custom_word": self.__get_custom_word,
"delete_custom_word": self.__delete_custom_word,
"check_custom_words": self.__check_custom_words,
"export_custom_words": self.__export_custom_words,
"analyse_import_custom_words_code": self.__analyse_import_custom_words_code,
"import_custom_words": self.__import_custom_words,
"get_categories": self.__get_categories,
"re_rss_history": self.__re_rss_history,
"delete_rss_history": self.__delete_rss_history,
"share_filtergroup": self.__share_filtergroup,
"import_filtergroup": self.__import_filtergroup,
"get_transfer_statistics": self.get_transfer_statistics,
"get_library_spacesize": self.get_library_spacesize,
"get_library_mediacount": self.get_library_mediacount,
"get_library_playhistory": self.get_library_playhistory,
"get_search_result": self.get_search_result,
"search_media_infos": self.search_media_infos,
"get_movie_rss_list": self.get_movie_rss_list,
"get_tv_rss_list": self.get_tv_rss_list,
"get_rss_history": self.get_rss_history,
"get_transfer_history": self.get_transfer_history,
"get_unknown_list": self.get_unknown_list,
没有合适的资源?快使用搜索试试~ 我知道了~
基于Python、HTML、JavaScript、CSS、Shell的nas-tools同步功能测试设计源码
共439个文件
py:176个
png:100个
html:48个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 181 浏览量
2024-10-06
02:59:53
上传
评论
收藏 11.8MB ZIP 举报
温馨提示
该项目是一个综合性的同步功能测试设计源码,采用Python、HTML、JavaScript、CSS和Shell等多语言开发,包含424个文件,其中Python脚本165个,图像资源100个,网页文件48个,JavaScript脚本45个,矢量图形9个,样式表7个,静态图片7个,数据库文件6个,文档5个,配置文件5个。该系统旨在测试并优化数据同步功能,适用于需要高效数据同步的应用场景。
资源推荐
资源详情
资源评论
收起资源包目录
基于Python、HTML、JavaScript、CSS、Shell的nas-tools同步功能测试设计源码 (439个子文件)
Dockerfile.beta 2KB
tabler.min.css 444KB
jsoneditor.min.css 35KB
font-awesome.min.css 30KB
fullcalendar.min.css 25KB
jquery.filetree.css 6KB
demo.min.css 5KB
dropzone.css 5KB
style.css 4KB
nprogress.css 2KB
sites.dat 549KB
Dockerfile 2KB
fontawesome-webfont.eot 162KB
upx.exe 403KB
spinner.gif 2KB
.gitignore 95B
.gitmodules 694B
navigation.html 93KB
basic.html 67KB
brushtask.html 51KB
svg.html 46KB
statistics.html 41KB
user_rss.html 40KB
customwords.html 37KB
site.html 37KB
torrent_remove.html 28KB
filterrule.html 23KB
search.html 23KB
downloader.html 20KB
notification.html 18KB
download_setting.html 16KB
mediafile.html 15KB
service.html 14KB
history.html 12KB
resources.html 12KB
index.html 11KB
directorysync.html 11KB
tmdbcache.html 10KB
douban.html 10KB
userdownloader.html 9KB
indexer.html 9KB
library.html 8KB
rss_parser.html 8KB
subtitle.html 8KB
head.html 8KB
downloading.html 7KB
users.html 7KB
tv_rss.html 6KB
unidentification.html 5KB
movie_rss.html 5KB
index.html 5KB
recommend.html 5KB
form.html 5KB
rss_history.html 5KB
rss_calendar.html 4KB
mediaserver.html 4KB
test.html 3KB
login.html 3KB
oops.html 2KB
sitelist.html 1KB
404.html 1KB
500.html 1KB
person.html 135B
mediainfo.html 85B
ranking.html 70B
nas-tools.ico 66KB
favicon.ico 4KB
template.jinja2 589B
startup.jpg 89KB
indexer.jpg 42KB
115.jpg 34KB
movie.jpg 32KB
pushplus.jpg 23KB
jellyfin.jpg 9KB
pt.jpg 6KB
echarts.min.js 994KB
worker-javascript.js 502KB
ace.js 388KB
fullcalendar.min.js 263KB
worker-css.js 147KB
tabler.min.js 143KB
jquery-3.3.1.min.js 85KB
dropzone-min.js 45KB
index.js 37KB
worker-json.js 23KB
mode-css.js 20KB
mode-javascript.js 20KB
list.min.js 19KB
lit-core.min.js 16KB
index.js 13KB
nprogress.js 11KB
numeral.min.js 11KB
util.js 9KB
dom-to-image.min.js 9KB
index.js 8KB
index.js 7KB
index.js 7KB
lit-state.js 7KB
mode-json.js 5KB
index.js 4KB
共 439 条
- 1
- 2
- 3
- 4
- 5
资源评论
xyq2024
- 粉丝: 2402
- 资源: 5452
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- js基础但是这个烂怂东西要求标题不能少于10个字才能上传然后我其实还没有写完之后再修订吧.md
- electron-tabs-master
- Unity3D 布朗运动算法插件 Brownian Motion
- 鼎微R16中控升级包R16-4.5.10-20170221及强制升级方法
- 鼎微R16中控升级包公版UI 2015及强制升级方法,救砖包
- 基于CSS与JavaScript的积分系统设计源码
- 生物化学作业_1_生物化学作业资料.pdf
- 基于libgdx引擎的Java开发连连看游戏设计源码
- 基于MobileNetV3的SSD目标检测算法PyTorch实现设计源码
- 基于Java JDK的全面框架设计源码学习项目
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功