Upload 5 files
Browse files- .gitattributes +1 -0
 - Dockerfile +58 -0
 - README.md +7 -5
 - config.py +32 -0
 - dl.so +3 -0
 - requirements.txt +4 -0
 
    	
        .gitattributes
    CHANGED
    
    | 
         @@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text 
     | 
|
| 33 | 
         
             
            *.zip filter=lfs diff=lfs merge=lfs -text
         
     | 
| 34 | 
         
             
            *.zst filter=lfs diff=lfs merge=lfs -text
         
     | 
| 35 | 
         
             
            *tfevents* filter=lfs diff=lfs merge=lfs -text
         
     | 
| 
         | 
| 
         | 
|
| 33 | 
         
             
            *.zip filter=lfs diff=lfs merge=lfs -text
         
     | 
| 34 | 
         
             
            *.zst filter=lfs diff=lfs merge=lfs -text
         
     | 
| 35 | 
         
             
            *tfevents* filter=lfs diff=lfs merge=lfs -text
         
     | 
| 36 | 
         
            +
            dl.so filter=lfs diff=lfs merge=lfs -text
         
     | 
    	
        Dockerfile
    ADDED
    
    | 
         @@ -0,0 +1,58 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            FROM python:3.12-slim
         
     | 
| 2 | 
         
            +
             
     | 
| 3 | 
         
            +
            WORKDIR /app
         
     | 
| 4 | 
         
            +
             
     | 
| 5 | 
         
            +
            RUN apt-get update && apt-get install -y \
         
     | 
| 6 | 
         
            +
                wget \
         
     | 
| 7 | 
         
            +
                unzip \
         
     | 
| 8 | 
         
            +
                ca-certificates \
         
     | 
| 9 | 
         
            +
                fonts-liberation \
         
     | 
| 10 | 
         
            +
                libasound2 \
         
     | 
| 11 | 
         
            +
                libatk-bridge2.0-0 \
         
     | 
| 12 | 
         
            +
                libatk1.0-0 \
         
     | 
| 13 | 
         
            +
                libcups2 \
         
     | 
| 14 | 
         
            +
                libdbus-1-3 \
         
     | 
| 15 | 
         
            +
                libexpat1 \
         
     | 
| 16 | 
         
            +
                libfontconfig1 \
         
     | 
| 17 | 
         
            +
                libgbm1 \
         
     | 
| 18 | 
         
            +
                libgcc1 \
         
     | 
| 19 | 
         
            +
                libglib2.0-0 \
         
     | 
| 20 | 
         
            +
                libnspr4 \
         
     | 
| 21 | 
         
            +
                libnss3 \
         
     | 
| 22 | 
         
            +
                libpango-1.0-0 \
         
     | 
| 23 | 
         
            +
                libpangocairo-1.0-0 \
         
     | 
| 24 | 
         
            +
                libstdc++6 \
         
     | 
| 25 | 
         
            +
                libx11-6 \
         
     | 
| 26 | 
         
            +
                libx11-xcb1 \
         
     | 
| 27 | 
         
            +
                libxcb1 \
         
     | 
| 28 | 
         
            +
                libxcomposite1 \
         
     | 
| 29 | 
         
            +
                libxdamage1 \
         
     | 
| 30 | 
         
            +
                libxext6 \
         
     | 
| 31 | 
         
            +
                libxfixes3 \
         
     | 
| 32 | 
         
            +
                libxkbcommon0 \
         
     | 
| 33 | 
         
            +
                libxrandr2 \
         
     | 
| 34 | 
         
            +
                libxss1 \
         
     | 
| 35 | 
         
            +
                libxtst6 \
         
     | 
| 36 | 
         
            +
                lsb-release \
         
     | 
| 37 | 
         
            +
                xdg-utils \
         
     | 
| 38 | 
         
            +
                --no-install-recommends \
         
     | 
| 39 | 
         
            +
                && rm -rf /var/lib/apt/lists/*
         
     | 
| 40 | 
         
            +
             
     | 
| 41 | 
         
            +
            RUN wget -O chromium.zip https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.87/linux64/chrome-headless-shell-linux64.zip \
         
     | 
| 42 | 
         
            +
                && unzip chromium.zip \
         
     | 
| 43 | 
         
            +
                && rm chromium.zip
         
     | 
| 44 | 
         
            +
             
     | 
| 45 | 
         
            +
            COPY requirements.txt .
         
     | 
| 46 | 
         
            +
            COPY dl.so .
         
     | 
| 47 | 
         
            +
            COPY config.py .
         
     | 
| 48 | 
         
            +
             
     | 
| 49 | 
         
            +
            RUN pip install --no-cache-dir -r requirements.txt
         
     | 
| 50 | 
         
            +
             
     | 
| 51 | 
         
            +
            ENV PYPPETEER_CHROME_PATH=/app/chrome-headless-shell-linux64/chrome-headless-shell
         
     | 
| 52 | 
         
            +
            ENV FLASK_HOST=0.0.0.0
         
     | 
| 53 | 
         
            +
            ENV PYTHONPATH=/app
         
     | 
| 54 | 
         
            +
             
     | 
| 55 | 
         
            +
            EXPOSE 7860
         
     | 
| 56 | 
         
            +
             
     | 
| 57 | 
         
            +
            CMD ["gunicorn", "--workers", "1", "--threads", "10", "--bind", "0.0.0.0:7860", "--timeout", "60", "dl:app"]
         
     | 
| 58 | 
         
            +
             
     | 
    	
        README.md
    CHANGED
    
    | 
         @@ -1,10 +1,12 @@ 
     | 
|
| 1 | 
         
             
            ---
         
     | 
| 2 | 
         
            -
            title:  
     | 
| 3 | 
         
            -
            emoji:  
     | 
| 4 | 
         
            -
            colorFrom:  
     | 
| 5 | 
         
            -
            colorTo:  
     | 
| 6 | 
         
            -
            sdk:  
     | 
| 
         | 
|
| 7 | 
         
             
            pinned: false
         
     | 
| 
         | 
|
| 8 | 
         
             
            ---
         
     | 
| 9 | 
         | 
| 10 | 
         
             
            Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
         
     | 
| 
         | 
|
| 1 | 
         
             
            ---
         
     | 
| 2 | 
         
            +
            title: dl
         
     | 
| 3 | 
         
            +
            emoji: 🔥
         
     | 
| 4 | 
         
            +
            colorFrom: pink
         
     | 
| 5 | 
         
            +
            colorTo: yellow
         
     | 
| 6 | 
         
            +
            sdk: docker
         
     | 
| 7 | 
         
            +
            app_port: 7860
         
     | 
| 8 | 
         
             
            pinned: false
         
     | 
| 9 | 
         
            +
            license: mit
         
     | 
| 10 | 
         
             
            ---
         
     | 
| 11 | 
         | 
| 12 | 
         
             
            Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
         
     | 
    	
        config.py
    ADDED
    
    | 
         @@ -0,0 +1,32 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            import os
         
     | 
| 2 | 
         
            +
             
     | 
| 3 | 
         
            +
            DADDY_BASE_URL = "https://thedaddy.click"
         
     | 
| 4 | 
         
            +
             
     | 
| 5 | 
         
            +
            FLASK_HOST = os.environ.get("FLASK_HOST", "0.0.0.0")
         
     | 
| 6 | 
         
            +
             
     | 
| 7 | 
         
            +
            DEFAULT_GLOBAL_USER_AGENT = (
         
     | 
| 8 | 
         
            +
                "Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) "
         
     | 
| 9 | 
         
            +
                "AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 "
         
     | 
| 10 | 
         
            +
                "EdgiOS/131.0.2903.42 Mobile/15E148 Safari/537.36"
         
     | 
| 11 | 
         
            +
            )
         
     | 
| 12 | 
         
            +
            APP_PY_STYLE_DEFAULT_HEADERS = {
         
     | 
| 13 | 
         
            +
                "User-Agent": (
         
     | 
| 14 | 
         
            +
                    "Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) "
         
     | 
| 15 | 
         
            +
                    "AppleWebKit/605.1.15 (KHTML, like Gecko) "
         
     | 
| 16 | 
         
            +
                    "FxiOS/33.0 Mobile/15E148 Safari/605.1.15"
         
     | 
| 17 | 
         
            +
                ),
         
     | 
| 18 | 
         
            +
                "Referer": "https://google.com/",
         
     | 
| 19 | 
         
            +
                "Origin":  "https://google.com",
         
     | 
| 20 | 
         
            +
                "Accept":  "*/*",
         
     | 
| 21 | 
         
            +
            }
         
     | 
| 22 | 
         
            +
             
     | 
| 23 | 
         
            +
            M3U_FETCH_TIMEOUT = 12
         
     | 
| 24 | 
         
            +
            KEY_FETCH_TIMEOUT = 10
         
     | 
| 25 | 
         
            +
            TS_FETCH_TIMEOUT = (5, 5)
         
     | 
| 26 | 
         
            +
             
     | 
| 27 | 
         
            +
            PYPPETEER_CHROME_PATH = os.environ.get("PYPPETEER_CHROME_PATH")
         
     | 
| 28 | 
         
            +
            PYPPETEER_TIMEOUT_MS = 20_000
         
     | 
| 29 | 
         
            +
             
     | 
| 30 | 
         
            +
            LOG_LEVEL = os.environ.get("LOG_LEVEL", "INFO").upper()
         
     | 
| 31 | 
         
            +
            LOG_FORMAT = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
         
     | 
| 32 | 
         
            +
             
     | 
    	
        dl.so
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:aa52fa3b002713d3459630ecfcc2d45cfb184b9a9f0968fcb4e1d00bb7b41188
         
     | 
| 3 | 
         
            +
            size 962680
         
     | 
    	
        requirements.txt
    ADDED
    
    | 
         @@ -0,0 +1,4 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            flask
         
     | 
| 2 | 
         
            +
            requests
         
     | 
| 3 | 
         
            +
            pyppeteer
         
     | 
| 4 | 
         
            +
            gunicorn
         
     |