mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-05 02:55:25 +00:00
Update domain
This commit is contained in:
parent
34ee68a5d0
commit
6a6a24165c
29
.github/workflows/update-loc-badge.yml
vendored
Normal file
29
.github/workflows/update-loc-badge.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Update Lines of Code Badge
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update-loc-badge:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install cloc
|
||||
run: sudo apt-get install -y cloc
|
||||
|
||||
- name: Count Lines of Code
|
||||
run: |
|
||||
LOC=$(cloc . --json | jq '.SUM.code')
|
||||
echo "{\"schemaVersion\": 1, \"label\": \"Lines of Code\", \"message\": \"$LOC\", \"color\": \"green\"}" > loc-badge.json
|
||||
|
||||
- name: Commit and Push LOC Badge
|
||||
run: |
|
||||
git config --local user.name "GitHub Actions"
|
||||
git config --local user.email "actions@github.com"
|
||||
git add loc-badge.json
|
||||
git commit -m "Update lines of code badge" || echo "No changes to commit"
|
||||
git push
|
@ -24,6 +24,9 @@
|
||||
<a href="https://pypi.org/project/streamingcommunity">
|
||||
<img src="https://img.shields.io/pypi/dm/streamingcommunity?style=for-the-badge" alt="PyPI Downloads"/>
|
||||
</a>
|
||||
<a href="https://github.com/Lovi-0/StreamingCommunity">
|
||||
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Lovi-0/StreamingCommunity/main/loc-badge.json&style=for-the-badge" alt="Lines of Code"/>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
# 📋 Table of Contents
|
||||
|
@ -38,9 +38,7 @@ def download_title(select_title: MediaItem):
|
||||
|
||||
# Define output path
|
||||
title_name = os_manager.get_sanitize_file(select_title.name)
|
||||
mp4_path = os_manager.get_sanitize_path(
|
||||
os.path.join(MOVIE_FOLDER, title_name.replace(".mp4", ""))
|
||||
)
|
||||
mp4_path = os.path.join(MOVIE_FOLDER, title_name.replace(".mp4", ""))
|
||||
|
||||
# Create output folder
|
||||
os_manager.create_path(mp4_path)
|
||||
|
@ -46,9 +46,7 @@ def download_film(select_title: MediaItem) -> str:
|
||||
|
||||
# Define output path
|
||||
title_name = os_manager.get_sanitize_file(select_title.name) + ".mp4"
|
||||
mp4_path = os_manager.get_sanitize_path(
|
||||
os.path.join(MOVIE_FOLDER, title_name.replace(".mp4", ""))
|
||||
)
|
||||
mp4_path = os.path.join(MOVIE_FOLDER, title_name.replace(".mp4", ""))
|
||||
|
||||
# Get m3u8 master playlist
|
||||
master_playlist = video_source.get_playlist()
|
||||
|
@ -45,9 +45,7 @@ def download_film(select_title: MediaItem) -> str:
|
||||
|
||||
# Define output path
|
||||
title_name = os_manager.get_sanitize_file(select_title.name) +".mp4"
|
||||
mp4_path = os_manager.get_sanitize_path(
|
||||
os.path.join(MOVIE_FOLDER, title_name.replace(".mp4", ""))
|
||||
)
|
||||
mp4_path = os.path.join(MOVIE_FOLDER, title_name.replace(".mp4", ""))
|
||||
|
||||
# Get m3u8 master playlist
|
||||
master_playlist = video_source.get_playlist()
|
||||
|
@ -32,9 +32,7 @@ def download_title(select_title: MediaItem):
|
||||
|
||||
# Define output path
|
||||
title_name = os_manager.get_sanitize_file(select_title.name)
|
||||
mp4_path = os_manager.get_sanitize_path(
|
||||
os.path.join(MOVIE_FOLDER, title_name.replace(".mp4", ""))
|
||||
)
|
||||
mp4_path = os.path.join(MOVIE_FOLDER, title_name.replace(".mp4", ""))
|
||||
|
||||
# Create output folder
|
||||
os_manager.create_path(mp4_path)
|
||||
|
@ -82,7 +82,7 @@
|
||||
"domain": "so"
|
||||
},
|
||||
"cb01new": {
|
||||
"domain": "video"
|
||||
"domain": "mobi"
|
||||
},
|
||||
"1337xx": {
|
||||
"domain": "to"
|
||||
|
Loading…
x
Reference in New Issue
Block a user