Jump to content

I need a script Please!


EODCrafter
Go to solution Solved by CBers,

Recommended Posts

EODCrafter

I want to Pull all my Video Files from The M3U and place them in files called .strm files named the same as the Video is So I can Import these into Emby like Regular Library Files....Similar to how this works with Group Titles That I use already. Any Help is appreciated by at least 5 people that I know of thus far....

#!/bin/sh
    #M3U Grab
    cd ~/xtevedock/files/
    wget "http://go.great.IPTV/get.php?username=***********@gmail.com&password=**********&type=m3u_plus&output=mpegts" -O iptv_download.m3u
    for i in "Sports" "News" "Movies" "General Streams" "Documentaries" "Kids" "Regional Locals" "Mini Series" "Music" "NCAAF" "NETFLIX  (series)" "NFL" "RADIO" "VOD - Action" "VOD - Animation" "VOD -  BOX SET" "VOD - Comedy" "VOD - Drama + Crime" "VOD - Family" "VOD - Horror" "VOD - KIDS TV" "VOD - Fantasy - SciFi" "Star Trek TNG (series)" "VOD - Superheroes" "VOD - Western"
    do
    <iptv_download.m3u grep --no-group-separator -A1 'group-title="'"$i"\" >"$i.m3u"
    sed -i '1i #EXTM3U' "$i.m3u"
    done

@@ddurdle

Edited by EODCrafter
Link to comment
Share on other sites

EODCrafter

Here's a partial sample of 1 m3u file that needs to be put in .strm files.......(I resell this service if anyone Interested....Very Stable Streams!)

#EXTM3U
#EXTINF:-1 tvg-ID="" tvg-name="Stargate SG-1 S01 E01" tvg-logo="http://go.teamexpat.ninja:80/images/gvUNea586UfEeMyXbzgI02HzEJT_small.jpg" group-title="StarGate SG1",Stargate SG-1 S01 E01
http://go.teamexpat.ninja:80/series/XXXXXXX/XXXXXXXX/70028.mkv
#EXTINF:-1 tvg-ID="" tvg-name="Stargate SG-1 S01 E02" tvg-logo="http://go.teamexpat.ninja:80/images/53I9owrjVTMuGP103HnuyjqwRvA_small.jpg" group-title="StarGate SG1",Stargate SG-1 S01 E02
http://go.teamexpat.ninja:80/series/XXXXXXX/XXXXXXXX/70033.mkv
#EXTINF:-1 tvg-ID="" tvg-name="Stargate SG-1 S01 E03" tvg-logo="http://go.teamexpat.ninja:80/images/oHuBK6BVB7Ln368NGo5li5c90oi_small.jpg" group-title="StarGate SG1",Stargate SG-1 S01 E03
http://go.teamexpat.ninja:80/series/XXXXXXX/XXXXXXXX/70034.mkv
#EXTINF:-1 tvg-ID="" tvg-name="Stargate SG-1 S01 E04" tvg-logo="http://go.teamexpat.ninja:80/images/4F9R0khhgJ7IVwKOG5Mfz388kb8_small.jpg" group-title="StarGate SG1",Stargate SG-1 S01 E04
http://go.teamexpat.ninja:80/series/XXXXXXX/XXXXXXXX/70035.mkv
#EXTINF:-1 tvg-ID="" tvg-name="Stargate SG-1 S01 E05" tvg-logo="http://go.teamexpat.ninja:80/images/1eRLWU48uP3Ajy92Mrs0fcoQ7AS_small.jpg" group-title="StarGate SG1",Stargate SG-1 S01 E05
http://go.teamexpat.ninja:80/series/XXXXXXX/XXXXXXXX/70036.mkv
#EXTINF:-1 tvg-ID="" tvg-name="Stargate SG-1 S01 E06" tvg-logo="http://go.teamexpat.ninja:80/images/ptjFFy4dTkAbCj8uEYwxSSuXIwa_small.jpg" group-title="StarGate SG1",Stargate SG-1 S01 E06
http://go.teamexpat.ninja:80/series/XXXXXXX/XXXXXXXX/70037.mkv
#EXTINF:-1 tvg-ID="" tvg-name="Stargate SG-1 S01 E07" tvg-logo="http://go.teamexpat.ninja:80/images/bThO6S1wwXQgDXlDkrUwzac8t3v_small.jpg" group-title="StarGate SG1",Stargate SG-1 S01 E07
http://go.teamexpat.ninja:80/series/XXXXXXX/XXXXXXXX/70038.mkv
#EXTINF:-1 tvg-ID="" tvg-name="Stargate SG-1 S01 E08" tvg-logo="http://go.teamexpat.ninja:80/images/oYow2kzAY28tWP0oZaYGykKmTRk_small.jpg" group-title="StarGate SG1",Stargate SG-1 S01 E08
http://go.teamexpat.ninja:80/series/XXXXXXX/XXXXXXXX/70039.mkv
#EXTINF:-1 tvg-ID="" tvg-name="Stargate SG-1 S01 E09" tvg-logo="http://go.teamexpat.ninja:80/images/sMCNB4FF3C0P44UfPxFmbu4xD8M_small.jpg" group-title="StarGate SG1",Stargate SG-1 S01 E09
http://go.teamexpat.ninja:80/series/XXXXXXX/XXXXXXXX/70040.mkv
Edited by EODCrafter
Link to comment
Share on other sites

  • 3 weeks later...
  • Solution
CBers

I want to Pull all my Video Files from The M3U and place them in files called .strm files named the same as the Video is So I can Import these into Emby like Regular Library Files

Doesn't this do that for you?

 

I see you've commented in the thread already.

  • Like 1
Link to comment
Share on other sites

EODCrafter

Doesn't this do that for you?

 

I see you've commented in the thread already.

Yes, I discovered that after I wrote this thread....It's a nice App but costs 10 Euros....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...