Merge branch 'dev' into dev-fix-gentele-theme

This commit is contained in:
DariusIII
2017-06-22 13:28:46 +02:00
8 changed files with 136 additions and 101 deletions
+3
View File
@@ -5,6 +5,9 @@ build:
- 'composer install --no-interaction --prefer-source --no-scripts --ignore-platform-reqs'
before:
- cp .env.scrutinizer .env
- mysql -u root -e "SET GLOBAL innodb_file_per_table = 1;"
- mysql -u root -e "SET GLOBAL innodb_file_format = 'barracuda';"
- mysql -u root -e "SET GLOBAL innodb_large_prefix = 1;"
- mysql -u root -e "CREATE DATABASE TEST;"
- mysql -u root TEST < resources/db/schema/mysql-ddl.sql
- mysql --local-infile=1 -u root -e "LOAD DATA LOCAL INFILE 'resources/db/schema/data/10-settings.tsv' IGNORE INTO TABLE TEST.settings FIELDS TERMINATED BY '\t' OPTIONALLY ENCLOSED BY '\'' LINES TERMINATED BY '\n' IGNORE 1 LINES (section,subsection,name,value,hint,setting);"
+4 -1
View File
@@ -24,7 +24,7 @@ php:
- '7.1'
addons:
mariadb: '10.1'
mariadb: '10.2'
apt:
packages:
- curl
@@ -39,6 +39,9 @@ install:
before_script:
# Create mysql database and user.
- mysql -u root -e "SET GLOBAL innodb_file_per_table = 1;"
- mysql -u root -e "SET GLOBAL innodb_file_format = BARRACUDA;"
- mysql -u root -e "SET GLOBAL innodb_large_prefix = 1;"
- mysql -u root -e "CREATE DATABASE TEST;"
- mysql -u root -e "GRANT ALL ON TEST.* TO 'TEST'@'localhost' IDENTIFIED BY 'TEST';"
- mysql -u root -e "GRANT FILE ON *.* TO 'TEST'@'localhost';"
+5
View File
@@ -1,3 +1,8 @@
2017-06-22 DariusIII
* Chg: Update travis.yml Mysql with barracuda and large prefix support
* Chg: Create all the tables in mysql-ddl.sql as InnoDB tables
* Chg: Increase varchar columns sizes in xxxinfo table
* Fix: Fixed fetching information from PopPorn, updated the logo
2017-06-21 DariusIII
* Chg: Adjust all the themes XXX pages for new source icons display
* Chg: Update adm, ade, aebn and hotmovies logos
+2 -2
View File
@@ -16,8 +16,8 @@
</last>
</scripts>
<sql>
<db>312</db>
<file>312</file>
<db>313</db>
<file>313</file>
</sql>
</versions>
</nntmux>
+53 -37
View File
@@ -1,19 +1,20 @@
<?php
namespace nntmux\processing\adult;
use nntmux\utility\Utility;
namespace nntmux\processing\adult;
class Popporn extends AdultMovies
{
/**
* Define a cookie file location for curl
*
* @var string string
*/
public $cookie = '';
/**
* Set this for what you are searching for.
*
* @var string
*/
public $searchTerm = '';
@@ -29,6 +30,7 @@ class Popporn extends AdultMovies
/**
* Sets the directurl for the return results array
*
* @var string
*/
protected $_directUrl = '';
@@ -61,6 +63,7 @@ class Popporn extends AdultMovies
/**
* Add this to popurl to get results
*
* @var string
*/
protected $_trailUrl = '';
@@ -73,6 +76,7 @@ class Popporn extends AdultMovies
/**
* Get Box Cover Images
*
* @return array - boxcover,backcover
*/
public function covers(): array
@@ -98,13 +102,14 @@ class Popporn extends AdultMovies
/**
* Gets the synopsis
*
* @return array|bool
*/
public function synopsis()
{
if ($ret = $this->_html->find('div[id=product-info] ,h3[class=highlight]', 1)) {
if ($ret->next_sibling()->plaintext) {
if (!stristr(trim($ret->next_sibling()->plaintext), "POPPORN EXCLUSIVE")) {
if (stripos(trim($ret->next_sibling()->plaintext), 'POPPORN EXCLUSIVE') === false) {
$this->_res['synopsis'] = trim($ret->next_sibling()->plaintext);
} else {
if ($ret->next_sibling()->next_sibling()) {
@@ -121,6 +126,7 @@ class Popporn extends AdultMovies
/**
* Gets trailer video
*
* @return array|bool
*/
public function trailers()
@@ -130,13 +136,11 @@ class Popporn extends AdultMovies
$ret->value = str_replace('..', '', $ret->value);
$tmprsp = $this->_response;
$this->_trailUrl = $ret->value;
$this->getRawHtml();
if (preg_match_all('/productID="\+(?<id>[0-9]+),/', $this->_response, $matches)) {
$productid = $matches['id'][0];
$random = ((float)rand() / (float)getrandmax()) * 5400000000000000;
$random = ((float)mt_rand() / (float)mt_getrandmax()) * 5400000000000000;
$this->_trailUrl = '/com/tlavideo/vod/FlvAjaxSupportService.cfc?random=' . $random;
$this->_postParams = 'method=pipeStreamLoc&productID=' . $productid;
$this->getRawHtml(true);
$ret = json_decode(json_decode($this->_response, true), true);
$this->_res['trailers']['baseurl'] = self::POPURL . '/flashmediaserver/trailerPlayer.swf';
$this->_res['trailers']['flashvars'] = 'subscribe=false&image=&file=' . self::POPURL . '/' . $ret['LOC'] . '&autostart=false';
@@ -161,14 +165,12 @@ class Popporn extends AdultMovies
if ($ret = $this->_html->find('div#lside', 0)) {
foreach ($ret->find("text") as $e) {
$e = trim($e->innertext);
$e = str_replace(',', '', $e);
$e = str_replace('...', '', $e);
$e = str_replace('&nbsp;', '', $e);
if (stristr($e, 'Country:')) {
$e = str_replace([', ', '...', '&nbsp;'], '', $e);
if (stripos($e, 'Country:') !== false) {
$country = true;
}
if ($country === true) {
if (!stristr($e, 'addthis_config')) {
if (stripos($e, 'addthis_config') === false) {
if (!empty($e)) {
$this->_res['productinfo'][] = $e;
}
@@ -187,7 +189,7 @@ class Popporn extends AdultMovies
foreach ($this->_html->find('ul.stock-information') as $ul) {
foreach ($ul->find('li') as $e) {
$e = trim($e->plaintext);
if ($e == 'Features:') {
if ($e === 'Features:') {
$features = true;
$e = null;
}
@@ -206,6 +208,7 @@ class Popporn extends AdultMovies
/**
* Gets the cast members and director
*
* @return array|bool
*/
public function cast()
@@ -218,12 +221,12 @@ class Popporn extends AdultMovies
$e = trim($e->innertext);
$e = str_replace(',', '', $e);
$e = str_replace('&nbsp;', '', $e);
if (stristr($e, 'Cast')) {
if (stripos($e, 'Cast') !== false) {
$cast = true;
}
$e = str_replace('Cast:', '', $e);
if ($cast === true) {
if (stristr($e, 'Director:')) {
if (stripos($e, 'Director:') !== false) {
$director = true;
$e = null;
}
@@ -235,7 +238,7 @@ class Popporn extends AdultMovies
$e = null;
}
}
if (!stristr($e, 'Country:')) {
if (stripos($e, 'Country:') === false) {
if (!empty($e)) {
$er[] = $e;
}
@@ -244,14 +247,15 @@ class Popporn extends AdultMovies
}
}
}
$this->_res['cast'] = & $er;
}
$this->_res['cast'] = $er;
return $this->_res;
}
/**
* Gets categories
*
* @return array
*/
public function genres()
@@ -261,8 +265,8 @@ class Popporn extends AdultMovies
foreach ($ret->find('a') as $e) {
$genres[] = trim($e->plaintext);
}
$this->_res['genres'] = & $genres;
}
$this->_res['genres'] = $genres;
return $this->_res;
}
@@ -277,57 +281,68 @@ class Popporn extends AdultMovies
public function processSite($movie): bool
{
if (!empty($movie)) {
$this->_trailUrl = self::TRAILINGSEARCH . urlencode($movie);
$this->_trailUrl = self::TRAILINGSEARCH . $movie;
$this->_response = getRawHtml(self::POPURL . $this->_trailUrl, $this->cookie);
if ($this->_response !== false) {
$this->_html->load($this->_response);
if ($ret = $this->_html->find('div.product-info, div.title', 1)) {
$this->_title = trim($ret->plaintext);
$title = preg_replace('/XXX/', '', $ret->plaintext);
$title = str_replace('XXX', '', $ret->plaintext);
$title = preg_replace('/\(.*?\)|[-._]/i', ' ', $title);
$title = trim($title);
if ($ret = $ret->find('a', 0)) {
$this->_trailUrl = trim($ret->href);
$this->_html->clear();
unset($this->_response);
$this->_response = getRawHtml($this->_trailUrl, $this->cookie);
if ($this->_response !== false) {
$this->_html->load($this->_response);
if ($ret = $this->_html->find('#link-to-this', 0)) {
$this->_directUrl = trim($ret->href);
$this->_html->clear();
unset($this->_response);
$this->_response = getRawHtml($this->_directUrl, $this->cookie);
similar_text(strtolower($movie), strtolower($title), $p);
if ($p >= 90) {
if ($ret = $ret->find('a', 0)) {
$this->_trailUrl = trim($ret->href);
$this->_html->clear();
unset($this->_response);
$this->_response = getRawHtml(self::POPURL . $this->_trailUrl, $this->cookie);
if ($this->_response !== false) {
$this->_html->load($this->_response);
}
similar_text(strtolower($movie), strtolower($title), $p);
if ($p >= 90) {
return true;
if ($ret = $this->_html->find('#link-to-this', 0)) {
$this->_directUrl = trim($ret->href);
$this->_html->clear();
unset($this->_response);
$this->_response = getRawHtml($this->_directUrl, $this->cookie);
$this->_html->load($this->_response);
return true;
}
return false;
}
}
return true;
}
}
} else {
$this->_response = getRawHtml(self::IF18);
$this->_response = getRawHtml(self::IF18, $this->cookie);
if ($this->_response !== false) {
$this->_html->load($this->_response);
return true;
}
return false;
}
return false;
}
return false;
}
/**
* Gets all information
*
* @return array|bool
*/
protected function getAll()
{
$results = [];
if (isset($this->_directUrl)) {
$results['title'] = $this->_title;
$results['title'] = $this->_title;
$results['directurl'] = $this->_directUrl;
}
if (is_array($this->synopsis())) {
@@ -351,6 +366,7 @@ class Popporn extends AdultMovies
if (empty($results)) {
return false;
}
return $results;
}
}
@@ -0,0 +1,8 @@
# Change director column in xxxinfo table
ALTER TABLE xxxinfo CHANGE director director VARCHAR(255) DEFAULT NULL;
# Change genre column in xxxinfo table
ALTER TABLE xxxinfo CHANGE genre genre VARCHAR(255) NOT NULL;
# Change title column in xxxinfo table
ALTER TABLE xxxinfo CHANGE title title VARCHAR(1024) NOT NULL;
+61 -61
View File
@@ -8,7 +8,7 @@ CREATE TABLE allgroups (
PRIMARY KEY (id),
INDEX ix_allgroups_name (name)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -28,7 +28,7 @@ CREATE TABLE anidb_episodes (
airdate DATE NOT NULL,
PRIMARY KEY (anidbid, episodeid)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET =utf8
COLLATE =utf8_unicode_ci;
@@ -61,7 +61,7 @@ CREATE TABLE anidb_info (
PRIMARY KEY (anidbid),
KEY ix_anidb_info_datetime (startdate, enddate, updated)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET =utf8
COLLATE =utf8_unicode_ci;
@@ -79,7 +79,7 @@ CREATE TABLE anidb_titles (
COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (anidbid, type, lang, title)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci;
@@ -101,7 +101,7 @@ CREATE TABLE audio_data (
PRIMARY KEY (id),
UNIQUE INDEX ix_releaseaudio_releaseid_audioid (releases_id, audioid)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -123,7 +123,7 @@ CREATE TABLE binaries (
INDEX ix_binaries_partcheck (partcheck),
INDEX ix_binaries_collection (collections_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -143,7 +143,7 @@ CREATE TABLE binaryblacklist (
INDEX ix_binaryblacklist_groupname (groupname),
INDEX ix_binaryblacklist_status (status)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1000001;
@@ -171,7 +171,7 @@ CREATE TABLE bookinfo (
FULLTEXT INDEX ix_bookinfo_author_title_ft (author, title),
UNIQUE INDEX ix_bookinfo_asin (asin)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -191,7 +191,7 @@ CREATE TABLE categories (
INDEX ix_categories_status (status),
INDEX ix_categories_parentid (parentid)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1000001;
@@ -212,7 +212,7 @@ CREATE TABLE category_regexes (
INDEX ix_category_regexes_ordinal (ordinal),
INDEX ix_category_regexes_categories_id (categories_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 100000;
@@ -244,7 +244,7 @@ CREATE TABLE collections (
INDEX ix_collection_releaseid (releases_id),
UNIQUE INDEX ix_collection_collectionhash (collectionhash)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -263,7 +263,7 @@ CREATE TABLE collection_regexes (
INDEX ix_collection_regexes_status (status),
INDEX ix_collection_regexes_ordinal (ordinal)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 100000;
@@ -289,7 +289,7 @@ CREATE TABLE consoleinfo (
FULLTEXT INDEX ix_consoleinfo_title_platform_ft (title, platform),
UNIQUE INDEX ix_consoleinfo_asin (asin)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -316,7 +316,7 @@ CREATE TABLE dnzb_failures (
failed INT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (release_id, userid)
)
ENGINE =MYISAM
ENGINE =InnoDB
DEFAULT CHARSET =utf8
COLLATE =utf8_unicode_ci;
@@ -339,7 +339,7 @@ CREATE TABLE forumpost (
KEY createddate (createddate),
KEY updateddate (updateddate)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -381,7 +381,7 @@ CREATE TABLE genres (
disabled TINYINT(1) NOT NULL DEFAULT '0',
PRIMARY KEY (id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1000001;
@@ -406,7 +406,7 @@ CREATE TABLE groups (
KEY active (active),
UNIQUE INDEX ix_groups_name (name)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1000001;
@@ -420,7 +420,7 @@ CREATE TABLE invitations (
createddate DATETIME NOT NULL,
PRIMARY KEY (id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -434,7 +434,7 @@ CREATE TABLE logging (
host VARCHAR(40) DEFAULT NULL,
PRIMARY KEY (id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -453,7 +453,7 @@ CREATE TABLE menu (
PRIMARY KEY (id),
INDEX ix_role_ordinal (role, ordinal)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1000001;
@@ -471,7 +471,7 @@ CREATE TABLE missed_parts (
INDEX ix_missed_parts_numberid_groupsid_attempts (numberid, groups_id, attempts),
UNIQUE INDEX ix_missed_parts_numberid_groupsid (numberid, groups_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -501,7 +501,7 @@ CREATE TABLE movieinfo (
INDEX ix_movieinfo_title (title),
UNIQUE INDEX ix_movieinfo_imdbid (imdbid)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -528,7 +528,7 @@ CREATE TABLE musicinfo (
FULLTEXT INDEX ix_musicinfo_artist_title_ft (artist, title),
UNIQUE INDEX ix_musicinfo_asin (asin)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -559,7 +559,7 @@ CREATE TABLE multigroup_collections (
INDEX ix_collection_releaseid (releases_id),
UNIQUE INDEX ix_collection_collectionhash (collectionhash)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -571,7 +571,7 @@ CREATE TABLE multigroup_posters (
PRIMARY KEY (id) ,
UNIQUE KEY (poster)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -592,7 +592,7 @@ CREATE TABLE content (
role INT NOT NULL DEFAULT '0',
INDEX ix_showinmenu_status_contenttype_role (showinmenu, status, contenttype, role)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1000001;
@@ -604,7 +604,7 @@ CREATE TABLE par_hashes (
hash VARCHAR(32) NOT NULL COMMENT 'hash_16k block of par2',
PRIMARY KEY (releases_id, hash)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci;
@@ -617,7 +617,7 @@ CREATE TABLE parts (
size MEDIUMINT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (binaries_id,number)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -649,7 +649,7 @@ CREATE TABLE predb (
FULLTEXT INDEX ft_predb_filename (filename),
INDEX ix_predb_searched (searched)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -661,7 +661,7 @@ CREATE TABLE predb_hashes (
hash VARBINARY(20) NOT NULL DEFAULT '',
PRIMARY KEY (hash)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci;
@@ -694,7 +694,7 @@ CREATE TABLE predb_imports (
groupname VARCHAR(255)
COLLATE utf8_unicode_ci DEFAULT NULL
)
ENGINE =MYISAM
ENGINE =InnoDB
DEFAULT CHARSET =utf8
COLLATE =utf8_unicode_ci;
@@ -776,7 +776,7 @@ processed',
INDEX ix_releases_dehashstatus (dehashstatus,ishashed),
INDEX ix_releases_reqidstatus (adddate,reqidstatus,isrequestid)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1
@@ -816,7 +816,7 @@ CREATE TABLE release_comments (
INDEX ix_releasecomment_releases_id (releases_id),
INDEX ix_releasecomment_userid (users_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -829,7 +829,7 @@ CREATE TABLE releases_groups (
COMMENT 'FK to groups.id',
PRIMARY KEY (releases_id, groups_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci;
@@ -840,7 +840,7 @@ CREATE TABLE release_regexes (
naming_regex_id INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (releases_id, collection_regex_id, naming_regex_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci;
@@ -862,7 +862,7 @@ CREATE TABLE releaseextrafull (
mediainfo TEXT NULL,
PRIMARY KEY (releases_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci;
@@ -878,7 +878,7 @@ CREATE TABLE release_files (
PRIMARY KEY (releases_id, name),
KEY ix_releasefiles_ishashed (ishashed)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci;
@@ -896,7 +896,7 @@ CREATE TABLE release_naming_regexes (
INDEX ix_release_naming_regexes_status (status),
INDEX ix_release_naming_regexes_ordinal (ordinal)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 100000;
@@ -908,7 +908,7 @@ CREATE TABLE release_nfos (
nfo BLOB NULL DEFAULT NULL,
PRIMARY KEY (releases_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci;
@@ -928,7 +928,7 @@ CREATE TABLE release_search_data (
INDEX ix_releasesearch_releases_id (releases_id),
INDEX ix_releasesearch_guid (guid)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -943,7 +943,7 @@ CREATE TABLE release_subtitles (
PRIMARY KEY (id),
UNIQUE INDEX ix_releasesubs_releases_id_subsid (releases_id, subsid)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -960,7 +960,7 @@ CREATE TABLE settings (
PRIMARY KEY (section, subsection, name),
UNIQUE KEY ui_settings_setting (setting)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci;
@@ -982,7 +982,7 @@ CREATE TABLE sharing (
max_pull MEDIUMINT UNSIGNED NOT NULL DEFAULT '20000',
PRIMARY KEY (site_guid)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci;
@@ -998,7 +998,7 @@ CREATE TABLE sharing_sites (
comments MEDIUMINT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -1014,7 +1014,7 @@ CREATE TABLE short_groups (
PRIMARY KEY (id),
INDEX ix_shortgroups_name (name)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -1047,7 +1047,7 @@ CREATE TABLE steam_apps (
PRIMARY KEY (appid, name),
FULLTEXT INDEX ix_name_ft (name)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci;
@@ -1060,7 +1060,7 @@ CREATE TABLE tmux (
PRIMARY KEY (id),
UNIQUE INDEX ix_tmux_setting (setting)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -1107,7 +1107,7 @@ CREATE TABLE upcoming_releases (
PRIMARY KEY (id),
UNIQUE INDEX ix_upcoming_source (source, typeid)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -1156,7 +1156,7 @@ CREATE TABLE users (
PRIMARY KEY (id),
INDEX ix_role (role)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -1171,7 +1171,7 @@ CREATE TABLE users_releases (
PRIMARY KEY (id),
UNIQUE INDEX ix_usercart_userrelease (users_id, releases_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -1188,7 +1188,7 @@ CREATE TABLE user_downloads (
KEY userid (users_id),
KEY timestamp (timestamp)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -1203,7 +1203,7 @@ CREATE TABLE user_excluded_categories (
PRIMARY KEY (id),
UNIQUE INDEX ix_userexcat_usercat (users_id, categories_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -1233,7 +1233,7 @@ CREATE TABLE user_movies (
PRIMARY KEY (id),
INDEX ix_usermovies_userid (users_id, imdbid)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -1250,7 +1250,7 @@ CREATE TABLE user_requests (
KEY userid (users_id),
KEY timestamp (timestamp)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -1268,7 +1268,7 @@ CREATE TABLE user_roles (
hideads TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 4;
@@ -1284,7 +1284,7 @@ CREATE TABLE user_series (
PRIMARY KEY (id),
INDEX ix_userseries_videos_id (users_id, videos_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
@@ -1305,7 +1305,7 @@ CREATE TABLE video_data (
videolibrary VARCHAR(50) DEFAULT NULL,
PRIMARY KEY (releases_id)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci;
@@ -1354,11 +1354,11 @@ CREATE TABLE videos_aliases (
DROP TABLE IF EXISTS xxxinfo;
CREATE TABLE xxxinfo (
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
title VARCHAR(255) NOT NULL,
title VARCHAR(1024) NOT NULL,
tagline VARCHAR(1024) NOT NULL,
plot BLOB NULL DEFAULT NULL,
genre VARCHAR(64) NOT NULL,
director VARCHAR(64) DEFAULT NULL,
genre VARCHAR(255) NOT NULL,
director VARCHAR(255) DEFAULT NULL,
actors VARCHAR(2500) NOT NULL,
extras TEXT DEFAULT NULL,
productinfo TEXT DEFAULT NULL,
@@ -1372,7 +1372,7 @@ CREATE TABLE xxxinfo (
PRIMARY KEY (id),
UNIQUE INDEX ix_xxxinfo_title (title)
)
ENGINE = MYISAM
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
AUTO_INCREMENT = 1;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 834 B

After

Width:  |  Height:  |  Size: 1.3 KiB