mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
Fixes
This commit is contained in:
parent
75a29043b6
commit
c093a6b28b
4 changed files with 10 additions and 10 deletions
|
@ -15,11 +15,11 @@ class M3uParseStreamsView(FlaskView):
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
def show(self):
|
def show(self):
|
||||||
m3u = M3uParseStreams.objects()
|
m3u = M3uParseStreams.objects.all()
|
||||||
return render_template('autofill/show_streams.html', m3u=m3u)
|
return render_template('autofill/show_streams.html', m3u=m3u)
|
||||||
|
|
||||||
def show_anonim(self):
|
def show_anonim(self):
|
||||||
m3u = M3uParseStreams.objects()
|
m3u = M3uParseStreams.objects.all()
|
||||||
return render_template('autofill/show_streams_anonim.html', m3u=m3u)
|
return render_template('autofill/show_streams_anonim.html', m3u=m3u)
|
||||||
|
|
||||||
@route('/search/<sid>', methods=['GET'])
|
@route('/search/<sid>', methods=['GET'])
|
||||||
|
@ -82,11 +82,11 @@ class M3uParseVodsView(FlaskView):
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
def show(self):
|
def show(self):
|
||||||
m3u = M3uParseVods.objects()
|
m3u = M3uParseVods.objects.all()
|
||||||
return render_template('autofill/show_vods.html', m3u=m3u)
|
return render_template('autofill/show_vods.html', m3u=m3u)
|
||||||
|
|
||||||
def show_anonim(self):
|
def show_anonim(self):
|
||||||
m3u = M3uParseVods.objects()
|
m3u = M3uParseVods.objects.all()
|
||||||
return render_template('autofill/show_vods_anonim.html', m3u=m3u)
|
return render_template('autofill/show_vods_anonim.html', m3u=m3u)
|
||||||
|
|
||||||
@route('/search/<sid>', methods=['GET'])
|
@route('/search/<sid>', methods=['GET'])
|
||||||
|
|
|
@ -23,13 +23,13 @@ class EpgView(FlaskView):
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
def show(self):
|
def show(self):
|
||||||
epgs = Epg.objects()
|
epgs = Epg.objects.all()
|
||||||
return render_template('epg/show.html', epgs=epgs)
|
return render_template('epg/show.html', epgs=epgs)
|
||||||
|
|
||||||
@route('/update_urls', methods=['GET'])
|
@route('/update_urls', methods=['GET'])
|
||||||
@login_required
|
@login_required
|
||||||
def update_urls(self):
|
def update_urls(self):
|
||||||
epgs = Epg.objects()
|
epgs = Epg.objects.all()
|
||||||
epg_service_in_directory = app.config.get('EPG_IN_DIRECTORY')
|
epg_service_in_directory = app.config.get('EPG_IN_DIRECTORY')
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
|
|
|
@ -18,11 +18,11 @@ from app.common.series.forms import SerialForm
|
||||||
|
|
||||||
def _get_stream_by_id(sid: str):
|
def _get_stream_by_id(sid: str):
|
||||||
try:
|
try:
|
||||||
server = IStream.objects.get({'_id': ObjectId(sid)})
|
stream = IStream.objects.get({'_id': ObjectId(sid)})
|
||||||
except IStream.DoesNotExist:
|
except IStream.DoesNotExist:
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
return server
|
return stream
|
||||||
|
|
||||||
|
|
||||||
# routes
|
# routes
|
||||||
|
|
|
@ -16,9 +16,9 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
argv = parser.parse_args()
|
argv = parser.parse_args()
|
||||||
|
|
||||||
mongo = connect(uri=argv.mongo_uri)
|
mongo = connect(argv.mongo_uri)
|
||||||
if mongo:
|
if mongo:
|
||||||
streams = IStream.objects()
|
streams = IStream.objects.all()
|
||||||
f = open("out.m3u", "w")
|
f = open("out.m3u", "w")
|
||||||
f.write('#EXTM3U\n')
|
f.write('#EXTM3U\n')
|
||||||
idx = 0
|
idx = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue