Start moving to ytdl-org
This commit is contained in:
		
							parent
							
								
									2765503713
								
							
						
					
					
						commit
						067aa17edf
					
				
					 61 changed files with 182 additions and 182 deletions
				
			
		| 
						 | 
				
			
			@ -322,7 +322,7 @@ class GITBuilder(GITInfoBuilder):
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
class YoutubeDLBuilder(object):
 | 
			
		||||
    authorizedUsers = ['fraca7', 'phihag', 'rg3', 'FiloSottile']
 | 
			
		||||
    authorizedUsers = ['fraca7', 'phihag', 'rg3', 'FiloSottile', 'ytdl-org']
 | 
			
		||||
 | 
			
		||||
    def __init__(self, **kwargs):
 | 
			
		||||
        if self.repoName != 'youtube-dl':
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,8 +27,8 @@ from youtube_dl.utils import (
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
class GitHubReleaser(object):
 | 
			
		||||
    _API_URL = 'https://api.github.com/repos/rg3/youtube-dl/releases'
 | 
			
		||||
    _UPLOADS_URL = 'https://uploads.github.com/repos/rg3/youtube-dl/releases/%s/assets?name=%s'
 | 
			
		||||
    _API_URL = 'https://api.github.com/repos/ytdl-org/youtube-dl/releases'
 | 
			
		||||
    _UPLOADS_URL = 'https://uploads.github.com/repos/ytdl-org/youtube-dl/releases/%s/assets?name=%s'
 | 
			
		||||
    _NETRC_MACHINE = 'github.com'
 | 
			
		||||
 | 
			
		||||
    def __init__(self, debuglevel=0):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,7 +10,7 @@ import textwrap
 | 
			
		|||
atom_template = textwrap.dedent("""\
 | 
			
		||||
    <?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
    <feed xmlns="http://www.w3.org/2005/Atom">
 | 
			
		||||
        <link rel="self" href="http://rg3.github.io/youtube-dl/update/releases.atom" />
 | 
			
		||||
        <link rel="self" href="http://ytdl-org.github.io/youtube-dl/update/releases.atom" />
 | 
			
		||||
        <title>youtube-dl releases</title>
 | 
			
		||||
        <id>https://yt-dl.org/feed/youtube-dl-updates-feed</id>
 | 
			
		||||
        <updated>@TIMESTAMP@</updated>
 | 
			
		||||
| 
						 | 
				
			
			@ -21,7 +21,7 @@ entry_template = textwrap.dedent("""
 | 
			
		|||
    <entry>
 | 
			
		||||
        <id>https://yt-dl.org/feed/youtube-dl-updates-feed/youtube-dl-@VERSION@</id>
 | 
			
		||||
        <title>New version @VERSION@</title>
 | 
			
		||||
        <link href="http://rg3.github.io/youtube-dl" />
 | 
			
		||||
        <link href="http://ytdl-org.github.io/youtube-dl" />
 | 
			
		||||
        <content type="xhtml">
 | 
			
		||||
            <div xmlns="http://www.w3.org/1999/xhtml">
 | 
			
		||||
                Downloads available at <a href="https://yt-dl.org/downloads/@VERSION@/">https://yt-dl.org/downloads/@VERSION@/</a>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -96,7 +96,7 @@ git push origin "$version"
 | 
			
		|||
REV=$(git rev-parse HEAD)
 | 
			
		||||
make youtube-dl youtube-dl.tar.gz
 | 
			
		||||
read -p "VM running? (y/n) " -n 1
 | 
			
		||||
wget "http://$buildserver/build/rg3/youtube-dl/youtube-dl.exe?rev=$REV" -O youtube-dl.exe
 | 
			
		||||
wget "http://$buildserver/build/ytdl-org/youtube-dl/youtube-dl.exe?rev=$REV" -O youtube-dl.exe
 | 
			
		||||
mkdir -p "build/$version"
 | 
			
		||||
mv youtube-dl youtube-dl.exe "build/$version"
 | 
			
		||||
mv youtube-dl.tar.gz "build/$version/youtube-dl-$version.tar.gz"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,7 +24,7 @@ total_bytes = 0
 | 
			
		|||
 | 
			
		||||
for page in itertools.count(1):
 | 
			
		||||
    releases = json.loads(compat_urllib_request.urlopen(
 | 
			
		||||
        'https://api.github.com/repos/rg3/youtube-dl/releases?page=%s' % page
 | 
			
		||||
        'https://api.github.com/repos/ytdl-org/youtube-dl/releases?page=%s' % page
 | 
			
		||||
    ).read().decode('utf-8'))
 | 
			
		||||
 | 
			
		||||
    if not releases:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue