Skip to content

download videos from 30Nama.com with RED subscription

Notifications You must be signed in to change notification settings

Mandofskii/30nama_downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

30Nama Downloader

from cinema_helper import Cinema
downloader = Cinema('USER TOKEN HERE')
post = downloader.find_post_by_id('ID HERE')

# general info : 
print("POST ID : %s", post.id)
print("POST TYPE : %s", post.type) # Series or Movie
print("POST NAME : %s", post.name)

# get playlists :

# if post is movie :
for quality in post.downloads:
    print("PLAYLIST DOWNLOAD LINK / QUALITY : %s / %s", quality.link, quality.label)
    print("SUBTITLE DOWNLOAD LINK : %s", post.subtitle.fa) # post.subtitle.fa/en

# if post is a series:
for season in post.seasons:
    for episode in season.episodes:
        for quality in episode.downloads:
            print("PLAYLIST DOWNLOAD LINK / QUALITY : %s / %s", quality.link, quality.label)
        print("SUBTITLE DOWNLOAD LINK : %s", episode.subtitle.fa) # post.subtitle.fa/en

Downloading playlists :

sudo apt install ffmpeg -y
ffmpeg -i "PLAYLIST_URL HERE" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 output.mp4
  • Downloading with python :
    from subprocess import Popen
    
    playlist_url = "http://....."
    output_file  = "output.mp4"
    command = "ffmpeg -i {} -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 {}"
    Popen(command.format(playlist_url, output_file))

Mandofskii

About

download videos from 30Nama.com with RED subscription

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages