mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
bumps
This commit is contained in:
parent
437a7a69d1
commit
acf3b1838b
70
.github/workflows/codeql-analysis.yml
vendored
Normal file
70
.github/workflows/codeql-analysis.yml
vendored
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
# For most projects, this workflow file will not need changing; you simply need
|
||||||
|
# to commit it to your repository.
|
||||||
|
#
|
||||||
|
# You may wish to alter this file to override the set of languages analyzed,
|
||||||
|
# or to provide custom queries or build logic.
|
||||||
|
#
|
||||||
|
# ******** NOTE ********
|
||||||
|
# We have attempted to detect the languages in your repository. Please check
|
||||||
|
# the `language` matrix defined below to confirm you have the correct set of
|
||||||
|
# supported CodeQL languages.
|
||||||
|
#
|
||||||
|
name: "CodeQL"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [ master ]
|
||||||
|
schedule:
|
||||||
|
- cron: '38 9 * * 4'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analyze:
|
||||||
|
name: Analyze
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
language: [ 'python' ]
|
||||||
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
||||||
|
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Initializes the CodeQL tools for scanning.
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: github/codeql-action/init@v1
|
||||||
|
with:
|
||||||
|
languages: ${{ matrix.language }}
|
||||||
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
|
# By default, queries listed here will override any specified in a config file.
|
||||||
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||||
|
|
||||||
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
|
- name: Autobuild
|
||||||
|
uses: github/codeql-action/autobuild@v1
|
||||||
|
|
||||||
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
|
# 📚 https://git.io/JvXDl
|
||||||
|
|
||||||
|
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||||
|
# and modify them (or add more) to build your code if your project
|
||||||
|
# uses a compiled language
|
||||||
|
|
||||||
|
#- run: |
|
||||||
|
# make bootstrap
|
||||||
|
# make release
|
||||||
|
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: github/codeql-action/analyze@v1
|
10
README.md
10
README.md
@ -218,14 +218,20 @@ terms - View Terms of Service
|
|||||||
settings - Set your preference
|
settings - Set your preference
|
||||||
```
|
```
|
||||||
|
|
||||||
# Test video
|
# Test data
|
||||||
|
|
||||||
|
## Test video
|
||||||
|
|
||||||
https://www.youtube.com/watch?v=BaW_jenozKc
|
https://www.youtube.com/watch?v=BaW_jenozKc
|
||||||
|
|
||||||
# Test Playlist
|
## Test Playlist
|
||||||
|
|
||||||
https://www.youtube.com/playlist?list=PL1Hdq7xjQCJxQnGc05gS4wzHWccvEJy0w
|
https://www.youtube.com/playlist?list=PL1Hdq7xjQCJxQnGc05gS4wzHWccvEJy0w
|
||||||
|
|
||||||
|
## Test m3u8
|
||||||
|
|
||||||
|
https://dmesg.app/m3u8/prog_index.m3u8
|
||||||
|
|
||||||
# Donation
|
# Donation
|
||||||
|
|
||||||
* [Buy me a coffee](https://www.buymeacoffee.com/bennythink)
|
* [Buy me a coffee](https://www.buymeacoffee.com/bennythink)
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
pyrogram==1.2.20
|
pyrogram==1.2.20
|
||||||
tgcrypto==1.2.2
|
tgcrypto==1.2.2
|
||||||
yt-dlp==2021.12.27
|
yt-dlp==2021.12.27
|
||||||
youtube-dl==2021.6.6
|
APScheduler==3.8.1
|
||||||
APScheduler==3.7.0
|
|
||||||
beautifultable==1.0.1
|
beautifultable==1.0.1
|
||||||
ffmpeg-python==0.2.0
|
ffmpeg-python==0.2.0
|
||||||
PyMySQL==1.0.2
|
PyMySQL==1.0.2
|
||||||
celery==5.2.2
|
celery==5.2.3
|
||||||
filetype==1.0.9
|
filetype==1.0.9
|
||||||
flower==1.0.0
|
flower==1.0.0
|
||||||
|
|
||||||
|
@ -17,20 +17,14 @@ import time
|
|||||||
|
|
||||||
import fakeredis
|
import fakeredis
|
||||||
import filetype
|
import filetype
|
||||||
|
import yt_dlp as ytdl
|
||||||
from utils import current_time
|
from yt_dlp import DownloadError
|
||||||
|
|
||||||
if os.getenv("downloader") == "youtube-dl":
|
|
||||||
import youtube_dl as ytdl
|
|
||||||
from youtube_dl import DownloadError
|
|
||||||
else:
|
|
||||||
import yt_dlp as ytdl
|
|
||||||
from yt_dlp import DownloadError
|
|
||||||
|
|
||||||
from config import ENABLE_VIP, TG_MAX_SIZE
|
from config import ENABLE_VIP, TG_MAX_SIZE
|
||||||
from db import Redis
|
from db import Redis
|
||||||
from limit import VIP
|
from limit import VIP
|
||||||
from utils import adjust_formats, apply_log_formatter, get_user_settings
|
from utils import (adjust_formats, apply_log_formatter, current_time,
|
||||||
|
get_user_settings)
|
||||||
|
|
||||||
r = fakeredis.FakeStrictRedis()
|
r = fakeredis.FakeStrictRedis()
|
||||||
apply_log_formatter()
|
apply_log_formatter()
|
||||||
|
Loading…
Reference in New Issue
Block a user