Compare commits
5 Commits
set-secret
...
main
Author | SHA1 | Date | |
---|---|---|---|
b1babac9c9 | |||
af1b07c0d3 | |||
881f4e39af | |||
847e5d5baa | |||
b8c8e867fc |
9
.gitlab-ci.yml
Normal file
9
.gitlab-ci.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# You can override the included template(s) by including variable overrides
|
||||||
|
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
|
||||||
|
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
|
||||||
|
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
|
||||||
|
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
|
||||||
|
# Note that environment variables can be set in several places
|
||||||
|
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
|
||||||
|
include:
|
||||||
|
- template: Security/Secret-Detection.gitlab-ci.yml
|
@ -1,7 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
baseurl = "https://anime-api.5t5.top/v2"
|
baseurl = "https://anime-api.5t5.top/v2"
|
||||||
token = "lDr7fxW8tDFoY2CdySoaEs1gCaiA3dUP1GwIe6Khg"
|
token = ""
|
||||||
node = "2AG_CF"
|
node = "2AG_CF"
|
||||||
save_path="./downloads"
|
save_path="./downloads"
|
||||||
|
|
||||||
|
7
get.py
7
get.py
@ -11,6 +11,13 @@ def downloadAnime(id, filepath):
|
|||||||
})
|
})
|
||||||
|
|
||||||
for episode in episodes:
|
for episode in episodes:
|
||||||
|
|
||||||
|
# if ["parseResult"] not found
|
||||||
|
if "parseResult" not in episode:
|
||||||
|
print("parseResult not found")
|
||||||
|
print(episode)
|
||||||
|
continue
|
||||||
|
|
||||||
ext = episode["parseResult"]["extensionName"]["raw"]
|
ext = episode["parseResult"]["extensionName"]["raw"]
|
||||||
filename_download = os.path.join(filepath, episode["name"] + '.' + ext + ".downloading")
|
filename_download = os.path.join(filepath, episode["name"] + '.' + ext + ".downloading")
|
||||||
filename_done = os.path.join(filepath, episode["name"] + '.' + ext)
|
filename_done = os.path.join(filepath, episode["name"] + '.' + ext)
|
||||||
|
Loading…
Reference in New Issue
Block a user