mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 14:42:31 +01:00
74f733710e
* update translations * split helper file * implement refresh informations * add tests * update production files * move refresh all to a seperate request * update production files
21 lines
388 B
PHP
21 lines
388 B
PHP
<?php
|
|
|
|
function increaseTimeLimit()
|
|
{
|
|
set_time_limit(config('app.PHP_TIME_LIMIT'));
|
|
}
|
|
|
|
function getFileName($file)
|
|
{
|
|
return $file->changed->name ?? $file->name;
|
|
}
|
|
|
|
function mediaType($mediaType)
|
|
{
|
|
return $mediaType == 'movies' ? 'movie' : 'tv';
|
|
}
|
|
|
|
function getSlug($title)
|
|
{
|
|
return str_slug($title) != '' ? str_slug($title) : 'no-slug-available';
|
|
} |