Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit 624bcca

Browse files
Fixed the merge conflicts and many other things
2 parents c899826 + 1816fae commit 624bcca

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ python-slugify==1.1.4
5252
six==1.16.0
5353
Unidecode==1.3.6
5454
websockets==11.0.3
55+
-81 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

rewards/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
path('addQuizApi', views.AddQuizInApi.as_view()),
2020
path('quizTurns', views.QuizInTurns.as_view()),
2121
path("automatequiz", views.load_questions_from_json_view, name="nothing"),
22-
path("getZoloVideos", views.GetZoloVideos.as_view()),
23-
path("ZoloVideoApi", views.ZoloVideoApi.as_view())
22+
# path("getZoloVideos", views.GetZoloVideos.as_view()),
23+
# path("ZoloVideoApi", views.ZoloVideoApi.as_view())
2424
]
2525

2626

rewards/views.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
from django.utils import timezone as django_timezone
1414
from .serializers import QuestionSerializer, QuizApiSerializer, QuizSerializer, MonsterHunterSerializer
1515
from .models import Subject, Quiz, Questions
16-
17-
1816
User = get_user_model()
1917

2018

@@ -433,24 +431,17 @@ def get(self, request):
433431
# Retrieve ZoloVideos instance for the current user
434432
zolo_videos = ZoloVideos.objects.get(user=request.user)
435433

434+
436435
# Get the unwatched video URLs based on the user's country
437436
unwatched_urls = zolo_videos.get_videos_by_country()
438437
return Response({"urls": unwatched_urls}, status=status.HTTP_200_OK)
439438

440439

441-
# def get_stream_url(video_url):
442-
# # Create youtube_dl options dictionary
443-
# ydl_opts = {
444-
# 'format': 'best',
445-
# 'quiet': True
446-
# }
447-
#
448-
# # Create youtube_dl extractor
449-
# with youtube_dl.YoutubeDL(ydl_opts) as ydl:
450-
# info_dict = ydl.extract_info(video_url, download=False)
451-
# stream_url = info_dict['url']
452-
#
453-
# return stream_url
440+
441+
442+
443+
444+
454445

455446

456447
class ZoloVideoApi(APIView):

0 commit comments

Comments
 (0)