enum Category MOVIES MUSIC VIRAL GAMING TV
# Gravity factor (newer content gets boost) gravity = 1.5 if hours_since_publish < 24 else 1.8 CumFiesta.24.06.16.Ryan.Reid.The.Rise.Of.The.Cu...
);
def fetch_youtube_trending(): youtube_api_key = os.getenv("YOUTUBE_API_KEY") url = f"https://www.googleapis.com/youtube/v3/videos?part=snippet,statistics&chart=mostPopular®ionCode=US&videoCategoryId=10&key=youtube_api_key" # Category 10 = Music, 24 = Entertainment return videos enum Category MOVIES MUSIC VIRAL GAMING TV #