Skip to content

Commit

Permalink
הסרת סרטונים פרטיים מהרשימה
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Dec 5, 2024
1 parent 8efc98b commit 62b325e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 61 deletions.
60 changes: 0 additions & 60 deletions docs/channel_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,66 +35,6 @@
"url": "https://www.youtube.com/watch?v=7fSUM8PjksQ&list=PLQjPBMVv_U5avwTimtEg9lkJiwsYUZUmC",
"description": null,
"thumbnail": "https://i.ytimg.com/vi/7fSUM8PjksQ/maxresdefault.jpg"
},
{
"title": "Private video",
"url": "https://www.youtube.com/watch?v=14FzfFRlFEU&list=PLQjPBMVv_U5avwTimtEg9lkJiwsYUZUmC",
"description": "This video is private.",
"thumbnail": null
},
{
"title": "Private video",
"url": "https://www.youtube.com/watch?v=zI6_4u38Vdc&list=PLQjPBMVv_U5avwTimtEg9lkJiwsYUZUmC",
"description": "This video is private.",
"thumbnail": null
},
{
"title": "Private video",
"url": "https://www.youtube.com/watch?v=ASInOfWRI7g&list=PLQjPBMVv_U5avwTimtEg9lkJiwsYUZUmC",
"description": "This video is private.",
"thumbnail": null
},
{
"title": "Private video",
"url": "https://www.youtube.com/watch?v=jSSb9prwg24&list=PLQjPBMVv_U5avwTimtEg9lkJiwsYUZUmC",
"description": "This video is private.",
"thumbnail": null
},
{
"title": "Private video",
"url": "https://www.youtube.com/watch?v=wA8fXl417eA&list=PLQjPBMVv_U5avwTimtEg9lkJiwsYUZUmC",
"description": "This video is private.",
"thumbnail": null
},
{
"title": "Private video",
"url": "https://www.youtube.com/watch?v=jL6v9SbSgus&list=PLQjPBMVv_U5avwTimtEg9lkJiwsYUZUmC",
"description": "This video is private.",
"thumbnail": null
},
{
"title": "Private video",
"url": "https://www.youtube.com/watch?v=SDu8XgsaevM&list=PLQjPBMVv_U5avwTimtEg9lkJiwsYUZUmC",
"description": "This video is private.",
"thumbnail": null
},
{
"title": "Private video",
"url": "https://www.youtube.com/watch?v=ejV3n5HFSro&list=PLQjPBMVv_U5avwTimtEg9lkJiwsYUZUmC",
"description": "This video is private.",
"thumbnail": null
},
{
"title": "Private video",
"url": "https://www.youtube.com/watch?v=tKgulHqjNkI&list=PLQjPBMVv_U5avwTimtEg9lkJiwsYUZUmC",
"description": "This video is private.",
"thumbnail": null
},
{
"title": "Private video",
"url": "https://www.youtube.com/watch?v=dMsCL8I7pCU&list=PLQjPBMVv_U5avwTimtEg9lkJiwsYUZUmC",
"description": "This video is private.",
"thumbnail": null
}
]
},
Expand Down
6 changes: 5 additions & 1 deletion scripts/get_urls_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def get_best_thumbnail(thumbnails):
if idx == 0:
first_video_id = video_id

# אם הסרטון הוא "Private video", לא נוסיף אותו לרשימה
if video_title == "Private video":
continue

# בדיקה אם הסרטון הוא שורטס
if 'shorts' in video_description.lower(): # אם המילה "shorts" נמצאת בתיאור הסרטון
video_description = None # לא להוסיף תיאור לסרטוני שורטס
Expand All @@ -85,7 +89,7 @@ def get_best_thumbnail(thumbnails):
# הוספת כל הפלייליסט עם הסרטונים שלו
playlists.append({
"title": playlist_title,
"url": playlist_url, # הקישור החדש לפלייליסט
"url": playlist_url, # קישור חדש עם ה-Video הראשון
"description": playlist_description,
"thumbnail": playlist_thumbnail,
"videos": playlist_videos
Expand Down

0 comments on commit 62b325e

Please sign in to comment.