Expand TheMovieDB importer to make it work with tv shows too.

This commit is contained in:
Damiano Galassi committed 2017-06-30 15:47:19 +02:00
1 parent c654526d91
commit 84de4b6d65
7 files changed
+404 -63

No files matched your search

+15 -13
View File
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11761" systemVersion="16C48b" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13122.19" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11761"/>
<development version="8000" identifier="xcode"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13122.19"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
@@ -87,7 +88,7 @@ Gw
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<tableColumns>
<tableColumn width="505" minWidth="40" maxWidth="1000" id="30">
<tableColumn identifier="" width="505" minWidth="40" maxWidth="1000" id="30">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Title">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
@@ -212,7 +213,7 @@ Gw
<rect key="frame" x="10" y="33" width="504" height="64"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" id="145">
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" id="145">
<rect key="frame" x="14" y="41" width="63" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Movie:" id="148">
@@ -221,7 +222,7 @@ Gw
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" id="151">
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" id="151">
<rect key="frame" x="82" y="38" width="323" height="22"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="152">
@@ -273,7 +274,7 @@ Gw
<rect key="frame" x="10" y="33" width="504" height="64"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" id="89">
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" id="89">
<rect key="frame" x="14" y="42" width="63" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="TV Show:" id="90">
@@ -282,7 +283,7 @@ Gw
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" misplaced="YES" id="98">
<textField verticalHuggingPriority="750" misplaced="YES" allowsCharacterPickerTouchBarItem="YES" id="98">
<rect key="frame" x="2" y="12" width="75" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Season #" id="99">
@@ -291,7 +292,7 @@ Gw
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" id="96">
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" id="96">
<rect key="frame" x="82" y="9" width="30" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="97">
@@ -304,7 +305,7 @@ Gw
<outlet property="delegate" destination="-2" id="115"/>
</connections>
</textField>
<textField verticalHuggingPriority="750" id="100">
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" id="100">
<rect key="frame" x="188" y="9" width="30" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="101">
@@ -317,7 +318,7 @@ Gw
<outlet property="delegate" destination="-2" id="116"/>
</connections>
</textField>
<textField verticalHuggingPriority="750" id="102">
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" id="102">
<rect key="frame" x="117" y="12" width="66" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Episode #" id="103">
@@ -326,7 +327,7 @@ Gw
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<comboBox verticalHuggingPriority="750" id="135">
<comboBox verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" id="135">
<rect key="frame" x="82" y="37" width="326" height="26"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" usesDataSource="YES" numberOfVisibleItems="5" id="136">
@@ -362,7 +363,8 @@ Gw
<menu key="menu" title="OtherViews" id="219">
<items>
<menuItem title="iTunes Store" state="on" id="220"/>
<menuItem title="TheTVDB" id="221"/>
<menuItem title="TheMovieDB" id="221"/>
<menuItem title="TheTVDB" id="QfG-gH-Nrj"/>
</items>
</menu>
</popUpButtonCell>
@@ -379,7 +381,7 @@ Gw
<outlet property="delegate" destination="-2" id="119"/>
</connections>
</tabView>
<textField hidden="YES" verticalHuggingPriority="750" id="176">
<textField hidden="YES" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" id="176">
<rect key="frame" x="41" y="21" width="297" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Progress status" id="177">