Skip to content

Commit

Permalink
2023-11-04 15:02:21 UTC - Always do right This will gratify some peop…
Browse files Browse the repository at this point in the history
…le and astonish the rest
  • Loading branch information
actions-user committed Nov 4, 2023
0 parents commit d747df0
Show file tree
Hide file tree
Showing 14 changed files with 1,907 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
hooks:
- id: black
language_version: python3.11

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace

- repo: https://github.com/PyCQA/bandit
rev: '1.7.5'
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:

# Maintain dependencies for poetry
- package-ecosystem: "pip"
directory: "/"
target-branch: "main"
schedule:
interval: "weekly"
commit-message:
prefix: "⬆️ 🤖 Dependencies"
12 changes: 12 additions & 0 deletions .github/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: ⛙pr


on:
workflow_dispatch:
# schedule:
# - cron: "0 1 * * *"

jobs:
autopr:
uses: mraniki/coding_toolset/.github/workflows/⛙pr.yml@main
secrets: inherit
29 changes: 29 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":semanticCommitTypeAll(⬆️ 🛠️)",
":disableDependencyDashboard"
],
"gitIgnoredAuthors": ["[email protected]","github-actions[bot]","[email protected]"],

"semanticCommits": "enabled",
"labels": ["dependencies"],
"baseBranches": ["main"],
"packageRules": [
{
"matchManagers": ["pip_requirements"],
"enabled": false
},
{
"matchUpdateTypes": ["minor", "patch"],
"matchCurrentVersion": "!/^0/",
"automerge": true
},
{
"matchUpdateTypes": ["major"],
"automerge": false,
"minimumReleaseAge": "30 days"
}
]
}
59 changes: 59 additions & 0 deletions .github/workflows/epg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Make EPG
on:
# schedule:
# - cron: "0 0 * * *"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Download WebGrab+Plus
run: |
wget http://webgrabplus.com/sites/default/files/download/SW/V3.2.0/WebGrabPlus_V3.2_install.tar.gz
- name: Extract WebGrabPlus_V3.2_install.tar.gz
run: |
tar -zxvf WebGrabPlus_V3.2_install.tar.gz
- name: Install WebGrab+Plus
run: |
cd .wg++
./install.sh
- name: Download WebGrab++.config.xml
run: |
cd .wg++
wget -N https://raw.githubusercontent.com/LiuYi0526/IPTV/master/WebGrab++.config.xml
- name: Run
run: |
cd .wg++
./run.sh
- name: Download Other EPG
run: |
cd .wg++
wget https://xmltvfr.fr/xmltv/xmltv.xml
wget https://raw.githubusercontent.com/bebawy6/EPG/master/usEPG.xml
- name: Install xmltv
run: |
sudo apt update
sudo apt -y install xmltv
- name: Merge EPG
run: |
cd .wg++
tv_cat guide.xml xmltv.xml > part1.xml
tv_cat part1.xml usEPG.xml > guide_merge.xml
- name : Upload artifact
uses: actions/upload-artifact@main
with:
name: guide.xml
path: .wg++/guide.xml
- name: Git push assets to "EPG" branch
run: |
cd .wg++
git init
git config --local user.name "actions"
git config --local user.email "[email protected]"
git checkout -b EPG
git add .
git commit -m "Update EPG"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f -u origin EPG
112 changes: 112 additions & 0 deletions .github/workflows/m3u.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Update M3U

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"


jobs:
Update:
name: 📺 m3u update
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write

steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 🕓 GetTime
id: date
run: |
echo "DATE=$(date +'%Y-%m-%d %H:%M:%S UTC')" >> $GITHUB_OUTPUT
- name: 🔮 Get a random quote
id: quote
run: |
sudo apt-get -y install fortune-mod
TITLE=$(fortune -s | tr -d '[:punct:]' | tr -d '[:digit:]' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | head -n 1)
# Limit the TITLE to 256 characters
TITLE=${TITLE:0:256}
echo "TITLE=$TITLE" >> $GITHUB_OUTPUT
- name: Update
run: |
cp config/template.txt IPTV.m3u
echo "IPTV.m3u contents:"
cat IPTV.m3u
# Define the search terms
mapfile -t search_terms < config/search_terms.txt
# mapfile -t search_terms < <(grep 'tvg-name' template.txt | cut -d'"' -f4)
for search_term in "${search_terms[@]}"; do
# Control flag for each search term
found=0
# Define the URLs
mapfile -t urls < config/urls.txt
for url in "${urls[@]}"; do
if [ $found -eq 1 ]; then
break
fi
# Download the URLs
echo "Downloading from $url..."
wget "$url" -O input.txt
echo "Extracting URL for $search_term..."
new_url=$(awk "/$search_term/{getline; print; exit}" input.txt)
echo "Extracted URL: $new_url"
if [ -z "$new_url" ]; then
echo "No New URL found"
else
echo "URL extracted found: $new_url"
echo ""
echo "Replacing URL in file with: $new_url"
awk -v new_url="$new_url" -v search_term="$search_term" '
index($0, search_term) {
print $0
getline
print new_url
next
}
{print}
' IPTV.m3u > temp && mv temp IPTV.m3u
echo "URL replaced in IPTV.m3u"
echo "IPTV.m3u contents:"
cat IPTV.m3u
# Set the control flag to 1
found=1
fi
done
done
# rm input.txt
echo "Update completed."
echo "IPTV.m3u contents:"
cat IPTV.m3u
- name: 🪪 Identify
run: |
git config --global user.email "[email protected]"
git config --global user.name "${GITHUB_ACTOR}"
- name: Clean
run: |
git checkout --orphan latest_branch
git add -A
git commit -am "${{ steps.date.outputs.DATE }} - ${{ steps.quote.outputs.TITLE }}"
git branch -D main
git branch -m main
git push -f origin main
41 changes: 41 additions & 0 deletions IPTV.m3u
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#EXTM3U
#EXTINF:0 tvg-chno="1" tvg-name="Bloomberg" tvg-ID="bloomberg.us" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/us/bloomberg.png" group-title="📰 NEWS",Bloomberg
https://i.mjh.nz/PlutoTV/54ff7ba69222cb1c2624c584-alt.m3u8
#EXTINF:0 tvg-chno="2" tvg-name="Reuters" tvg-ID="reuterstv.us" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/reuters.png" group-title="📰 NEWS",Reuters
https://i.mjh.nz/SamsungTVPlus/GBBA33000219V.m3u8
#EXTINF:0 tvg-chno="3" tvg-name="CNA" tvg-ID="cna.sg" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/sg/cna.png" group-title="📰 NEWS",Channel News Asia
https://d2ko4czujk9652.cloudfront.net/hls/clr4ctv_cnas/master.m3u8
#EXTINF:0 tvg-chno="4" tvg-name="Al Jazeera" tvg-ID="aljazeera.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/qa/aljazeera.png" group-title="📰 NEWS",Al Jazeera
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="5" tvg-name="Euronews" tvg-ID="euronews.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/euronews.png" group-title="📰 NEWS",Euronews
https://i.mjh.nz/PlutoTV/60492dcf1c9b6a00089f41df-alt.m3u8
#EXTINF:0 tvg-chno="6" tvg-name="CNN" tvg-ID="cnn.us" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/us/cnn.png" group-title="📰 NEWS ",CNN
https://i.mjh.nz/PlutoTV/5421f71da6af422839419cb3-alt.m3u8
#EXTINF:0 tvg-chno="201" tvg-name="BBC One" tvg-ID="bbc1.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/bbcone.png" group-title="🇬🇧 UK",BBC One
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="202" tvg-name="BBC Two" tvg-ID="bbctwo.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/bbctwo.png" group-title="🇬🇧 UK",BBC Two
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="203" tvg-name="Channel 4" tvg-ID="channel4.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/channel4.png" group-title="🇬🇧 UK",Channel 4
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="204" tvg-name="Channel 5" tvg-ID="channel5.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/channel5.png" group-title="🇬🇧 UK",Channel 5
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="205" tvg-name="ITV" tvg-ID="itv.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/itv.png" group-title="🇬🇧 UK",ITV
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="206" tvg-name="ITV2" tvg-ID="itv2.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/itv2.png" group-title="🇬🇧 UK",ITV2
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="301" tvg-name="TF1" tvg-ID="tf1.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/tf1.png" group-title=" 🇫🇷 FR ",TF1
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="302" tvg-name="France2" tvg-ID="france2.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/france2.png" group-title=" 🇫🇷 FR ",France 2
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="303" tvg-name="France 3" tvg-ID="france3.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/france3.png" group-title=" 🇫🇷 FR ",France 3
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="304" tvg-name="France 4" tvg-ID="france4.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/france4.png" group-title=" 🇫🇷 FR ",France 4
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="305" tvg-name="France 5" tvg-ID="france5.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/france5.png" group-title=" 🇫🇷 FR ",France 5
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="306" tvg-name="M6" tvg-ID="m6.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/m6.png" group-title=" 🇫🇷 FR ",M6
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="307" tvg-name="CANAL+" tvg-ID="canal.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/canalplus.png" group-title=" 🇫🇷 FR ",CANAL+
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="308" tvg-name="PARIS PREMIERE" tvg-ID="parispremiere.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/parispremiere.png" group-title=" 🇫🇷 FR ",PARIS PREMIERE
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

<table style="border: 1px solid transparent">
<tr>
<td align="center"><img width="200" alt="Logo" src="/docs/_static/logo.png">
</td>
<tr>
<td align="left">
<a href="https://raw.githubusercontent.com/mraniki/tv/main/IPTV.m3u"> M3U </a> <br>
<a href="https://shorturl.at/nrtDL"> https://shorturl.at/nrtDL </a>
</td>
</tr>
</tr>
<tr>
<td align="left">
<a href="https://raw.githubusercontent.com/mraniki/tv/main/EPG.xml"> EPG </a> <br>
<a href="https://shorturl.at/akBQ9"> https://shorturl.at/akBQ9 </a>
</td>
</tr>
<tr>
<td align="left">
<a href="https://iptvnator.vercel.app"> PLAYER </a> <br>
</td>
</tr>

</table>
2 changes: 2 additions & 0 deletions config/egp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://epgshare01.online/epgshare01/epg_ripper_SG1.xml.gz
https://epgshare01.online/epgshare01/epg_ripper_US1.xml.gz
8 changes: 8 additions & 0 deletions config/search_terms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Bloomberg
Reuters
CNA
Al Jazeera
Euronews
CNN
France2
France 3
41 changes: 41 additions & 0 deletions config/template.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#EXTM3U
#EXTINF:0 tvg-chno="1" tvg-name="Bloomberg" tvg-ID="bloomberg.us" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/us/bloomberg.png" group-title="📰 NEWS",Bloomberg
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="2" tvg-name="Reuters" tvg-ID="reuterstv.us" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/reuters.png" group-title="📰 NEWS",Reuters
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="3" tvg-name="CNA" tvg-ID="cna.sg" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/sg/cna.png" group-title="📰 NEWS",Channel News Asia
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="4" tvg-name="Al Jazeera" tvg-ID="aljazeera.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/qa/aljazeera.png" group-title="📰 NEWS",Al Jazeera
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="5" tvg-name="Euronews" tvg-ID="euronews.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/euronews.png" group-title="📰 NEWS",Euronews
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="6" tvg-name="CNN" tvg-ID="cnn.us" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/us/cnn.png" group-title="📰 NEWS ",CNN
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="201" tvg-name="BBC One" tvg-ID="bbc1.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/bbcone.png" group-title="🇬🇧 UK",BBC One
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="202" tvg-name="BBC Two" tvg-ID="bbctwo.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/bbctwo.png" group-title="🇬🇧 UK",BBC Two
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="203" tvg-name="Channel 4" tvg-ID="channel4.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/channel4.png" group-title="🇬🇧 UK",Channel 4
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="204" tvg-name="Channel 5" tvg-ID="channel5.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/channel5.png" group-title="🇬🇧 UK",Channel 5
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="205" tvg-name="ITV" tvg-ID="itv.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/itv.png" group-title="🇬🇧 UK",ITV
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="206" tvg-name="ITV2" tvg-ID="itv2.uk" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/uk/itv2.png" group-title="🇬🇧 UK",ITV2
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="301" tvg-name="TF1" tvg-ID="tf1.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/tf1.png" group-title=" 🇫🇷 FR ",TF1
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="302" tvg-name="France2" tvg-ID="france2.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/france2.png" group-title=" 🇫🇷 FR ",France 2
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="303" tvg-name="France 3" tvg-ID="france3.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/france3.png" group-title=" 🇫🇷 FR ",France 3
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="304" tvg-name="France 4" tvg-ID="france4.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/france4.png" group-title=" 🇫🇷 FR ",France 4
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="305" tvg-name="France 5" tvg-ID="france5.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/france5.png" group-title=" 🇫🇷 FR ",France 5
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="306" tvg-name="M6" tvg-ID="m6.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/m6.png" group-title=" 🇫🇷 FR ",M6
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="307" tvg-name="CANAL+" tvg-ID="canal.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/canalplus.png" group-title=" 🇫🇷 FR ",CANAL+
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
#EXTINF:0 tvg-chno="308" tvg-name="PARIS PREMIERE" tvg-ID="parispremiere.fr" tvg-logo="https://raw.githubusercontent.com/fraudiay79/logos/master/fr/parispremiere.png" group-title=" 🇫🇷 FR ",PARIS PREMIERE
https://live-par-1-abr-cdn.livepush.io/live/bigbuckbunnyclip/index.m3u8
7 changes: 7 additions & 0 deletions config/urls.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
https://raw.githubusercontent.com/iptv-org/iptv/master/streams/sg.m3u
https://i.mjh.nz/PlutoTV/us.m3u8
https://i.mjh.nz/PlutoTV/gb.m3u8
https://i.mjh.nz/PlutoTV/fr.m3u8
https://i.mjh.nz/SamsungTVPlus/gb.m3u8
https://i.mjh.nz/SamsungTVPlus/us.m3u8
https://i.mjh.nz/Plex/us.m3u8
Binary file added docs/_static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d747df0

Please sign in to comment.