Accounted for no artworkURL
This commit is contained in:
@@ -4,7 +4,8 @@ import requests
|
||||
API_URL = '''http://podcast-api.caprover.dandev.us'''
|
||||
|
||||
def feedImport ():
|
||||
outline = opml.parse("podcast_republic_podcasts.opml")
|
||||
# outline = opml.parse("podcast_republic_podcasts.opml")
|
||||
outline = opml.parse("test.opml")
|
||||
#get the number of shows from the OPML file
|
||||
x = len(outline)
|
||||
y=0
|
||||
@@ -17,10 +18,10 @@ def feedImport ():
|
||||
desc = outline[y].pr_desc
|
||||
|
||||
#checks to see if the podcast URL already exists for logged in user and skips it if it has already been imported.
|
||||
# payload = '''{"userid" : 1, "newURL": "''' + str(url) + '''"}'''
|
||||
r = requests.post(API_URL+'/addFeed/', json={"userID" : 1, "newURL" : url})
|
||||
print(r.text)
|
||||
# print(payload)
|
||||
# print(r.text)
|
||||
print(url)
|
||||
|
||||
y=y+1
|
||||
|
||||
feedImport()
|
||||
|
||||
Reference in New Issue
Block a user