title update
This commit is contained in:
+12
-4
@@ -7,6 +7,7 @@ import subprocess
|
|||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("-c", help = "AngelThump channel name")
|
parser.add_argument("-c", help = "AngelThump channel name")
|
||||||
|
parser.add_argument("-t", help = "get title", action='store_true')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
def getAT():
|
def getAT():
|
||||||
@@ -18,6 +19,7 @@ ogTitle = getAT().body.find('div', attrs={'id':'original-title'}).text
|
|||||||
ogStart = getAT().body.find('div', attrs={'id':'start'}).text
|
ogStart = getAT().body.find('div', attrs={'id':'start'}).text
|
||||||
ogEnd = getAT().body.find('div', attrs={'id':'end'}).text
|
ogEnd = getAT().body.find('div', attrs={'id':'end'}).text
|
||||||
ogRuntime = getAT().body.find('div', attrs={'id':'runtime'}).text
|
ogRuntime = getAT().body.find('div', attrs={'id':'runtime'}).text
|
||||||
|
ogOverview = (getAT().body.find('div', attrs={'id':'overview'}).text)
|
||||||
|
|
||||||
def getATTitleYear():
|
def getATTitleYear():
|
||||||
s = getAT().body.find('div', attrs={'id':'title'}).text
|
s = getAT().body.find('div', attrs={'id':'title'}).text
|
||||||
@@ -35,18 +37,24 @@ def getHLS():
|
|||||||
return endpoint
|
return endpoint
|
||||||
|
|
||||||
def playVLC():
|
def playVLC():
|
||||||
subprocess.Popen(["C:/Program Files/VideoLAN/VLC/vlc.exe",getHLS()])
|
subprocess.Popen(["C:/Program Files/VideoLAN/VLC/vlc.exe",getHLS(), "--qt-minimal-view"])
|
||||||
|
|
||||||
if args.c:
|
def ayyLmao():
|
||||||
print("[+] channel: % s" % args.c)
|
|
||||||
if args.c == "windowsmoviehouse":
|
|
||||||
print("[+] getting title")
|
print("[+] getting title")
|
||||||
print("[+] -----------------------")
|
print("[+] -----------------------")
|
||||||
print("[+] "+ ogTitle + " - " + getATTitleYear() + " (" + ogRuntime + ")")
|
print("[+] "+ ogTitle + " - " + getATTitleYear() + " (" + ogRuntime + ")")
|
||||||
print("[+] Start: "+ ogStart)
|
print("[+] Start: "+ ogStart)
|
||||||
print("[+] End: "+ ogEnd)
|
print("[+] End: "+ ogEnd)
|
||||||
|
print("[+] Overview: "+ ogOverview)
|
||||||
print("[+] -----------------------")
|
print("[+] -----------------------")
|
||||||
|
|
||||||
|
if args.c:
|
||||||
|
print("[+] channel: % s" % args.c)
|
||||||
|
if args.c == "windowsmoviehouse":
|
||||||
|
ayyLmao()
|
||||||
playVLC()
|
playVLC()
|
||||||
print("[+] opening VLC")
|
print("[+] opening VLC")
|
||||||
|
elif args.t:
|
||||||
|
ayyLmao()
|
||||||
else:
|
else:
|
||||||
print("[+] you need to input a channel name bozo '-c'")
|
print("[+] you need to input a channel name bozo '-c'")
|
||||||
|
|||||||
Reference in New Issue
Block a user