Skip to content
Permalink
Browse files

changed: added setting for use of video tags

default to false
  • Loading branch information...
notspiff committed Jan 2, 2018
1 parent d37a584 commit b037c6b0e594017e81368d29c28240ebab5af54f
@@ -13574,7 +13574,17 @@ msgctxt "#21342"
msgid "There are currently no updates available for this add-on."
msgstr ""

#empty strings from id 21343 to 21357
#: system/settings.xml
msgctxt "#21343"
msgid "Use video tags"
msgstr ""

#: system/settings.xml
msgctxt "#21344"
msgid "If mp4 or mkv files have tags, use this to for library metadata"
msgstr ""

#empty strings from id 21345 to 21357

#: system/settings/settings.xml
msgctxt "#21358"
@@ -998,6 +998,11 @@
</constraints>
<control type="list" format="string" />
</setting>
<setting id="myvideos.usetags" type="boolean" label="21343" help="21344">
<level>2</level>
<default>false</default>
<control type="toggle" />
</setting>
<setting id="myvideos.extractflags" type="boolean" label="20433" help="36178">
<level>2</level>
<default>true</default>
@@ -21,7 +21,9 @@
#include "VideoInfoTagLoaderFactory.h"
#include "VideoTagLoaderFFmpeg.h"
#include "VideoTagLoaderNFO.h"
#include "addons/AudioDecoder.h"
#include "FileItem.h"
#include "ServiceBroker.h"
#include "settings/Settings.h"

using namespace VIDEO;

@@ -38,7 +40,8 @@ IVideoInfoTagLoader* CVideoInfoTagLoaderFactory::CreateLoader(const CFileItem& i
return nfo;
delete nfo;

if (item.IsType(".mkv") || item.IsType(".mp4"))
if (CServiceBroker::GetSettings().GetBool("myvideos.usetags") &&
(item.IsType(".mkv") || item.IsType(".mp4")))
{
CVideoTagLoaderFFmpeg* ff = new CVideoTagLoaderFFmpeg(item, info, lookInFolder);
if (ff->HasInfo())

0 comments on commit b037c6b

Please sign in to comment.
You can’t perform that action at this time.