merge conflict

This commit is contained in:
pluja 2020-10-12 08:15:45 +02:00
parent c66afd6485
commit ceffdcfe24
2 changed files with 9 additions and 8 deletions

View File

@ -28,7 +28,7 @@ from youtube_search import YoutubeSearch
from app import app, db from app import app, db
from app.forms import LoginForm, RegistrationForm, EmptyForm, SearchForm, ChannelForm from app.forms import LoginForm, RegistrationForm, EmptyForm, SearchForm, ChannelForm
from app.models import User, twitterPost, ytPost, Post, youtubeFollow, twitterFollow from app.models import User, twitterPost, ytPost, Post, youtubeFollow, twitterFollow
from youtube import comments, utils from youtube import comments, utils, channel as ytch, search as yts
from youtube import watch as ytwatch from youtube import watch as ytwatch
######################################### #########################################
from youtube_data import search as yts from youtube_data import search as yts
@ -455,11 +455,14 @@ def watch():
id = request.args.get('v', None) id = request.args.get('v', None)
info = ytwatch.extract_info(id, False, playlist_id=None, index=None) info = ytwatch.extract_info(id, False, playlist_id=None, index=None)
<<<<<<< Updated upstream <<<<<<< Updated upstream
<<<<<<< Updated upstream
<<<<<<< Updated upstream <<<<<<< Updated upstream
# Use nginx # Use nginx
best_formats = ["22", "18", "34", "35", "36", "37", "38", "43", "44", "45", "46"] best_formats = ["22", "18", "34", "35", "36", "37", "38", "43", "44", "45", "46"]
======= =======
======= =======
>>>>>>> Stashed changes
=======
>>>>>>> Stashed changes >>>>>>> Stashed changes
vsources = ytwatch.get_video_sources(info, False) vsources = ytwatch.get_video_sources(info, False)
@ -748,13 +751,8 @@ def registrations_status_icon():
if count >= config['maxInstanceUsers'] or config['maxInstanceUsers'] == 0: if count >= config['maxInstanceUsers'] or config['maxInstanceUsers'] == 0:
return redirect(url_for('static', filename='img/close.png')) return redirect(url_for('static', filename='img/close.png'))
else: else:
return redirect(url_for('static', filename='img/open.png')) filen = url_for('static', filename='img/open.png')
caniregister = True
@app.route('/registrations_status/text')
def registrations_status_text():
count = db.session.query(User).count()
return "{c}/{t}".format(c=count, t=config['maxInstanceUsers'])
@app.route('/error/<errno>') @app.route('/error/<errno>')

View File

@ -43,6 +43,9 @@ pyparsing==2.4.7
PySocks==1.7.1 PySocks==1.7.1
python-anticaptcha==0.7.1 python-anticaptcha==0.7.1
<<<<<<< Updated upstream <<<<<<< Updated upstream
<<<<<<< Updated upstream
>>>>>>> Stashed changes
=======
>>>>>>> Stashed changes >>>>>>> Stashed changes
======= =======
>>>>>>> Stashed changes >>>>>>> Stashed changes