Remove every reference to alltubedownload.net (#422)
This commit is contained in:
parent
87e30f2e87
commit
1031ad152d
9 changed files with 4 additions and 56 deletions
|
@ -18,9 +18,6 @@ FileETag None
|
|||
<ifmodule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
RewriteCond %{HTTP_HOST} ^alltube\.herokuapp\.com$ [NC]
|
||||
RewriteRule ^(.*)$ https://www.alltubedownload.net/$1 [R=301,L]
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [QSA,L]
|
||||
</ifmodule>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# AllTube Download
|
||||
|
||||
HTML GUI for youtube-dl ([alltubedownload.net](http://alltubedownload.net/))
|
||||
HTML GUI for youtube-dl
|
||||
|
||||
![Screenshot](img/screenshot.png "AllTube GUI screenshot")
|
||||
|
||||
|
@ -165,7 +165,7 @@ so that you can reuse it in your projects.
|
|||
## JSON API
|
||||
|
||||
We also provide a JSON API that you can use like this:
|
||||
[/json?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ](https://alltubedownload.net/json?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ)
|
||||
`/json?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ`
|
||||
|
||||
It returns a JSON object generated by youtube-dl.
|
||||
You can find a list of all the properties [in the youtube-dl documentation](https://github.com/ytdl-org/youtube-dl#output-template).
|
||||
|
|
4
app.json
4
app.json
|
@ -2,7 +2,6 @@
|
|||
"name": "AllTube Download",
|
||||
"description": "HTML GUI for youtube-dl",
|
||||
"repository": "https://github.com/Rudloff/alltube.git",
|
||||
"logo": "https://alltubedownload.net/img/logo.png",
|
||||
"keywords": [
|
||||
"alltube",
|
||||
"download",
|
||||
|
@ -28,6 +27,5 @@
|
|||
"value": "false",
|
||||
"required": false
|
||||
}
|
||||
},
|
||||
"website": "https://alltubedownload.net/"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,23 +20,6 @@ use SmartyException;
|
|||
*/
|
||||
class ViewFactory
|
||||
{
|
||||
/**
|
||||
* Generate the canonical URL of the current page.
|
||||
*
|
||||
* @param Request $request PSR-7 Request
|
||||
*
|
||||
* @return string URL
|
||||
*/
|
||||
private static function getCanonicalUrl(Request $request): string
|
||||
{
|
||||
/** @var Uri $uri */
|
||||
$uri = $request->getUri();
|
||||
|
||||
return $uri->withBasePath('')
|
||||
->withHost('alltubedownload.net')
|
||||
->withScheme('https')
|
||||
->withPort(443);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Uri $uri
|
||||
|
@ -123,7 +106,6 @@ class ViewFactory
|
|||
$view->registerPlugin('function', 'base_url', [$smartyPlugins, 'baseUrl']);
|
||||
$view->registerPlugin('block', 't', [$localeManager, 'smartyTranslate']);
|
||||
|
||||
$view->offsetSet('canonical', self::getCanonicalUrl($request));
|
||||
$view->offsetSet('locale', $container->get('locale'));
|
||||
$view->offsetSet('config', $container->get('config'));
|
||||
$view->offsetSet('domain', $uri->withBasePath('')->getBaseUrl());
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
"role": "Designer"
|
||||
}
|
||||
],
|
||||
"homepage": "https://alltubedownload.net/",
|
||||
"require": {
|
||||
"php": ">=7.3",
|
||||
"ext-intl": "*",
|
||||
|
|
|
@ -6,19 +6,6 @@ Most recent browsers automatically play a video
|
|||
if it is a format they know how to play.
|
||||
You can usually download the video by doing *File > Save to* or *ctrl + S*.
|
||||
|
||||
## [alltubedownload.net](https://alltubedownload.net) is too slow
|
||||
|
||||
[alltubedownload.net](https://alltubedownload.net) is hosted on a free [Heroku server](https://www.heroku.com/pricing)
|
||||
so it has low RAM and CPU.
|
||||
|
||||
AllTube probably won't switch to a more expensive hosting
|
||||
because this project does not earn any financial resources
|
||||
and you are encouraged to host it yourself.
|
||||
|
||||
## alltubedownload.net often says "An error occurred in the application…"
|
||||
|
||||
See above.
|
||||
|
||||
## Change config parameters
|
||||
|
||||
You need to create a YAML file called `config.yml` in the `config/` folder.
|
||||
|
@ -68,8 +55,7 @@ There are two known workarounds:
|
|||
|
||||
* You can run AllTube locally on your computer.
|
||||
* You can enable streaming videos through the server (see below).
|
||||
Please note that this can use a lot of resources on the server
|
||||
(which is why we won't enable it on alltubedownload.net).
|
||||
Please note that this can use a lot of resources on the server.
|
||||
|
||||
## I get a 404 error on every page except the index
|
||||
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://alltubedownload.net/</loc>
|
||||
<changefreq>yearly</changefreq>
|
||||
<priority>1</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://alltubedownload.net/extractors</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
</url>
|
||||
</urlset>
|
|
@ -1 +0,0 @@
|
|||
Sitemap: https://alltubedownload.net/resources/sitemap.xml
|
|
@ -9,7 +9,6 @@
|
|||
<link rel="stylesheet" href="{base_url}/assets/open-sans/open-sans.css"/>
|
||||
<link rel="stylesheet" href="{base_url}/css/style.css"/>
|
||||
<title>{$config->appName}{if isset($title)} - {$title|escape}{/if}</title>
|
||||
<link rel="canonical" href="{$canonical}"/>
|
||||
<link rel="icon" href="{base_url}/img/favicon.png"/>
|
||||
<meta property="og:title" content="{$config->appName}{if isset($title)} - {$title|escape}{/if}"/>
|
||||
<meta property="og:image" content="{base_url}/img/logo.png"/>
|
||||
|
|
Loading…
Reference in a new issue