mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-24 05:00:50 -05:00
0 Byte file downlaod while running on docker with cobalt #594
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hextor1 on GitHub (Nov 27, 2024).
problem description
When I try to click on the download button, the file downloads with 0 bytes. I don't know what the issue is. I am running Cobalt with Docker, and after the issue in Oauth, I am using a proxy in my Cobalt docker-compose.yml file. My website is based on pythong django I am not using innertube for search the thumbnail details. i am using youtube_search for fetch the youtube data.
Is it necessary use proxies on this code to fetch the data from youtube? can anybody help me??
Here are the code
from django.http import HttpResponse,JsonResponse,FileResponse
from pytube.exceptions import VideoUnavailable
from django.shortcuts import redirect
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.csrf import ensure_csrf_cookie
from django.conf import settings
from youtube_search import YoutubeSearch
from pytube import YouTube
import io
import json
import re
from urllib.request import urlopen,Request
import os
import json
from django.conf import settings
import threading
import time
import os
import jwt
import datetime
import openai
from dotenv import load_dotenv
load_dotenv()
from .youtube_info import YouTubeVideoInfo
proxieNumber = 0
def search_video(request):
global proxieNumber
if request.method == "POST":
try:
format = request.POST.get("format")
url_type = request.POST.get("type")
your instance configuration
@wukko commented on GitHub (Nov 28, 2024):
your proxy's ip address might be blocked by googlevideo, we can't help you with that unfortunately