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
|
||||
def show(self):
|
||||
m3u = M3uParseStreams.objects()
|
||||
m3u = M3uParseStreams.objects.all()
|
||||
return render_template('autofill/show_streams.html', m3u=m3u)
|
||||
|
||||
def show_anonim(self):
|
||||
m3u = M3uParseStreams.objects()
|
||||
m3u = M3uParseStreams.objects.all()
|
||||
return render_template('autofill/show_streams_anonim.html', m3u=m3u)
|
||||
|
||||
@route('/search/<sid>', methods=['GET'])
|
||||
|
@ -82,11 +82,11 @@ class M3uParseVodsView(FlaskView):
|
|||
|
||||
@login_required
|
||||
def show(self):
|
||||
m3u = M3uParseVods.objects()
|
||||
m3u = M3uParseVods.objects.all()
|
||||
return render_template('autofill/show_vods.html', m3u=m3u)
|
||||
|
||||
def show_anonim(self):
|
||||
m3u = M3uParseVods.objects()
|
||||
m3u = M3uParseVods.objects.all()
|
||||
return render_template('autofill/show_vods_anonim.html', m3u=m3u)
|
||||
|
||||
@route('/search/<sid>', methods=['GET'])
|
||||
|
|
|
@ -23,13 +23,13 @@ class EpgView(FlaskView):
|
|||
|
||||
@login_required
|
||||
def show(self):
|
||||
epgs = Epg.objects()
|
||||
epgs = Epg.objects.all()
|
||||
return render_template('epg/show.html', epgs=epgs)
|
||||
|
||||
@route('/update_urls', methods=['GET'])
|
||||
@login_required
|
||||
def update_urls(self):
|
||||
epgs = Epg.objects()
|
||||
epgs = Epg.objects.all()
|
||||
epg_service_in_directory = app.config.get('EPG_IN_DIRECTORY')
|
||||
|
||||
result = []
|
||||
|
|
|
@ -18,11 +18,11 @@ from app.common.series.forms import SerialForm
|
|||
|
||||
def _get_stream_by_id(sid: str):
|
||||
try:
|
||||
server = IStream.objects.get({'_id': ObjectId(sid)})
|
||||
stream = IStream.objects.get({'_id': ObjectId(sid)})
|
||||
except IStream.DoesNotExist:
|
||||
return None
|
||||
else:
|
||||
return server
|
||||
return stream
|
||||
|
||||
|
||||
# routes
|
||||
|
|
|
@ -16,9 +16,9 @@ if __name__ == '__main__':
|
|||
|
||||
argv = parser.parse_args()
|
||||
|
||||
mongo = connect(uri=argv.mongo_uri)
|
||||
mongo = connect(argv.mongo_uri)
|
||||
if mongo:
|
||||
streams = IStream.objects()
|
||||
streams = IStream.objects.all()
|
||||
f = open("out.m3u", "w")
|
||||
f.write('#EXTM3U\n')
|
||||
idx = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue