Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8611559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:24:23+00:00 2026-06-12T04:24:23+00:00

The old youtube-dl use to be just one file so it was easy for

  • 0

The old youtube-dl use to be just one file so it was easy for me to edit. The new version has multiple files inside of it. To get it to work on my server I needed to extract the files and change the python path. Now how do I put it back together? The youtube-dl site says make compile.

youtube-dl contains main.py, init.py, FileDownloader.py, InfoExtractors.py, PostProcessor.py, utils.py

I need to put those scripts back into a single youtube-dl file. I’m running CentOS.

Thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:24:25+00:00Added an answer on June 12, 2026 at 4:24 am

    If all you want is to change the interpreter line (the hashbang), you should edit the file.

    Since it’s a binary file, you can’t use a normal text editor. I’d recommend just editing it with a Python script:

    with open('youtube-dl', 'rb') as f:
        header = f.readline()
        zipfile = f.read()
    
    with open('youtube-dl-new', 'wb') as f:
        print >> f, '#!/your/new/hashbang/line'
        f.write(zipfile)
    

    In Python 3:

    with open('youtube-dl', 'rb') as f:
        header = f.readline()
        zipfile = f.read()
    
    with open('youtube-dl-new', 'wb') as f:
        print('#!/your/new/hashbang/line', file=f)
        f.write(zipfile)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The old Rails used to have an application.rhtml file. The newer version appear to
In Android ICS and later, a new OpenMax IL API version is in use,
I have following config in my antisamy policy file: Old YouTube Object: <object width=1280
Old question My understanding is that C# has in some sense HashSet and set
Scenario: old legacy code in rpg have to consume data from a new web
The old JS SDK had a function called FB.ensureInit. The new SDK does not
I just add gcal to my project according to this tutorial http://www.youtube.com/watch?v=it_9H0GxRNI but 12
Got an issue with safari loading old youtube videos when back button is clicked.
Old hand at ASP.NET, new to the UpdatePanel. I have a reporting page which
OLD QUESTION, SEE BELOW FOR THE UPDATED VERSION My development environment is not the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.