Remove every reference to alltubedownload.net (#422)

This commit is contained in:
Pierre Rudloff 2022-10-16 15:22:47 +02:00
parent 87e30f2e87
commit 1031ad152d
9 changed files with 4 additions and 56 deletions

View file

@ -18,9 +18,6 @@ FileETag None
<ifmodule mod_rewrite.c> <ifmodule mod_rewrite.c>
RewriteEngine On RewriteEngine On
RewriteCond %{HTTP_HOST} ^alltube\.herokuapp\.com$ [NC]
RewriteRule ^(.*)$ https://www.alltubedownload.net/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L] RewriteRule ^ index.php [QSA,L]
</ifmodule> </ifmodule>

View file

@ -1,6 +1,6 @@
# AllTube Download # AllTube Download
HTML GUI for youtube-dl ([alltubedownload.net](http://alltubedownload.net/)) HTML GUI for youtube-dl
![Screenshot](img/screenshot.png "AllTube GUI screenshot") ![Screenshot](img/screenshot.png "AllTube GUI screenshot")
@ -165,7 +165,7 @@ so that you can reuse it in your projects.
## JSON API ## JSON API
We also provide a JSON API that you can use like this: 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. 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). You can find a list of all the properties [in the youtube-dl documentation](https://github.com/ytdl-org/youtube-dl#output-template).

View file

@ -2,7 +2,6 @@
"name": "AllTube Download", "name": "AllTube Download",
"description": "HTML GUI for youtube-dl", "description": "HTML GUI for youtube-dl",
"repository": "https://github.com/Rudloff/alltube.git", "repository": "https://github.com/Rudloff/alltube.git",
"logo": "https://alltubedownload.net/img/logo.png",
"keywords": [ "keywords": [
"alltube", "alltube",
"download", "download",
@ -28,6 +27,5 @@
"value": "false", "value": "false",
"required": false "required": false
} }
}, }
"website": "https://alltubedownload.net/"
} }

View file

@ -20,23 +20,6 @@ use SmartyException;
*/ */
class ViewFactory 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 * @param Uri $uri
@ -123,7 +106,6 @@ class ViewFactory
$view->registerPlugin('function', 'base_url', [$smartyPlugins, 'baseUrl']); $view->registerPlugin('function', 'base_url', [$smartyPlugins, 'baseUrl']);
$view->registerPlugin('block', 't', [$localeManager, 'smartyTranslate']); $view->registerPlugin('block', 't', [$localeManager, 'smartyTranslate']);
$view->offsetSet('canonical', self::getCanonicalUrl($request));
$view->offsetSet('locale', $container->get('locale')); $view->offsetSet('locale', $container->get('locale'));
$view->offsetSet('config', $container->get('config')); $view->offsetSet('config', $container->get('config'));
$view->offsetSet('domain', $uri->withBasePath('')->getBaseUrl()); $view->offsetSet('domain', $uri->withBasePath('')->getBaseUrl());

View file

@ -17,7 +17,6 @@
"role": "Designer" "role": "Designer"
} }
], ],
"homepage": "https://alltubedownload.net/",
"require": { "require": {
"php": ">=7.3", "php": ">=7.3",
"ext-intl": "*", "ext-intl": "*",

View file

@ -6,19 +6,6 @@ Most recent browsers automatically play a video
if it is a format they know how to play. if it is a format they know how to play.
You can usually download the video by doing *File > Save to* or *ctrl + S*. 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 ## Change config parameters
You need to create a YAML file called `config.yml` in the `config/` folder. 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 run AllTube locally on your computer.
* You can enable streaming videos through the server (see below). * You can enable streaming videos through the server (see below).
Please note that this can use a lot of resources on the server Please note that this can use a lot of resources on the server.
(which is why we won't enable it on alltubedownload.net).
## I get a 404 error on every page except the index ## I get a 404 error on every page except the index

View file

@ -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>

View file

@ -1 +0,0 @@
Sitemap: https://alltubedownload.net/resources/sitemap.xml

View file

@ -9,7 +9,6 @@
<link rel="stylesheet" href="{base_url}/assets/open-sans/open-sans.css"/> <link rel="stylesheet" href="{base_url}/assets/open-sans/open-sans.css"/>
<link rel="stylesheet" href="{base_url}/css/style.css"/> <link rel="stylesheet" href="{base_url}/css/style.css"/>
<title>{$config->appName}{if isset($title)} - {$title|escape}{/if}</title> <title>{$config->appName}{if isset($title)} - {$title|escape}{/if}</title>
<link rel="canonical" href="{$canonical}"/>
<link rel="icon" href="{base_url}/img/favicon.png"/> <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:title" content="{$config->appName}{if isset($title)} - {$title|escape}{/if}"/>
<meta property="og:image" content="{base_url}/img/logo.png"/> <meta property="og:image" content="{base_url}/img/logo.png"/>