47 Commits
Author SHA1 Message Date
Damiano Galassi f270e3dca7 Update submodule 2025-09-08 14:39:08 +02:00
Damiano Galassi d78b320322 Use modern UTI API in the save panel 2025-09-08 14:38:24 +02:00
Damiano Galassi 80e561d88c Update Sparkle to 2.7.1 2025-08-12 16:28:59 +02:00
Damiano Galassi 210cb96196 Bump version to 1.8.9 2025-08-12 16:22:21 +02:00
Damiano Galassi 56c7f01d07 Update NEWS 2025-08-12 16:21:12 +02:00
Damiano Galassi 04eab36031 Update submodule 2025-08-12 16:14:56 +02:00
Michael Mock d88285ece2 Subler Automation Support (#67)
Expand the AppleScript dictionary to support many additional commands.
2025-08-12 11:52:16 +02:00
Michael Mock 20a8714974 Menu Items and Hotkeys 2025-08-08 17:11:39 +02:00
Damiano Galassi 13f1f301e3 Add a "At the Beginning" item to the action menu 2025-08-08 17:09:35 +02:00
Damiano Galassi 5890c9abe2 Fix the none artwork queue option
Fix #59.
2025-07-25 18:06:51 +02:00
Damiano Galassi 2a1d8b08e1 Fix Swedish Rating
Fix #73.
2025-07-25 17:42:56 +02:00
Damiano Galassi 971adb6342 Fix the insert a chapter at the beginning action
Fix #74.
2025-07-25 17:36:46 +02:00
Damiano Galassi 87837a0f5e Cleanup logger 2025-07-05 09:30:19 +02:00
Michael Mock a4e4b6027d Logging functionality (#71)
Enhancing logging functionality, including log format options
2025-07-05 09:29:41 +02:00
Damiano Galassi bf012927b4 Expose the services ids in the metadata map 2025-06-24 10:02:42 +02:00
Damiano Galassi 3f5c5e7459 Autorecalculate key view loop 2025-06-24 09:53:59 +02:00
Damiano Galassi 1fd17a5cd0 Update NEWS 2025-03-22 10:10:06 +01:00
Damiano Galassi 5965ce4836 Bump version to 1.8.8 2025-03-22 10:07:35 +01:00
Damiano Galassi d9f2681bba Save movie view and presets editor view zoom level to a separate key 2025-03-22 10:06:47 +01:00
Damiano Galassi c256d87e50 Connect the zoom slider outlet 2025-03-19 16:19:54 +01:00
Damiano Galassi 7e1e9c148c Update NEWS 2025-03-17 16:32:05 +01:00
Damiano Galassi 7aa1674c08 Bump version to 1.8.7 2025-03-17 14:35:09 +01:00
Damiano Galassi e44a786b72 Update submodule 2025-03-17 14:33:52 +01:00
Damiano Galassi f0faeb066a Fix queue toolbar items validation 2025-03-13 09:50:35 +01:00
Damiano Galassi 7abffdda03 Bump version to 1.8.6 2025-03-11 11:58:38 +01:00
Damiano Galassi bc2597499b Update submodule 2025-03-11 11:57:31 +01:00
Damiano Galassi b6163b4d80 Update NEWS 2025-03-11 11:33:00 +01:00
Damiano Galassi 9ea235a35e Fix the checkOnlySelectedTracks function to make it work with multiple files 2025-03-11 11:23:22 +01:00
Karsten 5fdf9efa80 Added Check-Only-Selected Item
** How was it Changed? **
- importing media to a video, a dialog appears with the tracks to be imported. All tracks are enabled
- there is already a context-menu-item to only check the selected language
- i added another item to the context menu to only check the selected tracks
- the logic is simple:
   - if nothing is selected, the target item is the only checked item
   - if there's selection, these items will then be checked
   - target-item has precedence from selected items because it's more precise but can also be fixed by reopening the menu by targeting the selection

** Why was it changed? **
- i often encounter videos that have all required languages and after conversion but they lack the forced subtitle track
- dragging the source media on the video will open a dialog and tons of subtitle tracks are all selected
- even choosing the "check selected language" item would still select multiple tracks, most of which would need to be deselected in a second step
2025-03-11 11:01:57 +01:00
Damiano Galassi b26bcea29a Revert "Add a check all and uncheck all menu items to the file importer"
This reverts commit e520b13a4f.
2025-03-11 10:59:28 +01:00
Damiano Galassi 73f3fee7b0 Use a weak target to avoid reference cycles 2025-03-10 11:19:13 +01:00
Damiano Galassi ae2addbac4 Set toolbar items target 2025-03-10 11:01:03 +01:00
Damiano Galassi 8071145c7f Update only modified rows 2025-03-10 10:22:01 +01:00
Damiano Galassi e520b13a4f Add a check all and uncheck all menu items to the file importer 2025-03-10 10:19:14 +01:00
Damiano Galassi e07c39b039 Modernize MP4Dump 2025-03-10 10:00:05 +01:00
Damiano Galassi f3226469d7 Add experimental AppleTV v3 importer by Are Digranes 2025-02-05 11:38:36 +01:00
Damiano Galassi aa6e15f99b Update submodule 2025-02-05 11:38:17 +01:00
Michael Mock 3fe294f582 Fix the issue where Apple TV metadata isn't returned for TV/Movies that Apple doesn't currently sell in the given region. 2024-12-19 09:05:47 +01:00
Damiano Galassi 0ea41244f5 Set autosavesInPlace to false, the default will change in a future sdk 2024-12-16 12:14:20 +01:00
Damiano Galassi 9671e40708 Xcode 16.1 project recommended settings 2024-11-29 16:00:35 +01:00
Stephen Flynn 22df3e92db Added ability to set imported multichannel channel AAC track to Passthru + AAC (#39) 2024-11-29 13:40:19 +01:00
Damiano Galassi 8bbb34298a Remember artworks size in the movie view 2024-11-29 13:32:36 +01:00
Damiano Galassi b022bb460d Remember artworks size in the artwork selector view 2024-11-29 13:24:24 +01:00
Damiano Galassi 2d0cb8b827 Add IPT-C2 and Undefined color profiles 2024-11-29 12:53:43 +01:00
Damiano Galassi e38c5c2f87 Update submodule 2024-11-29 12:53:16 +01:00
Damiano Galassi 43d56d7851 Do not run the optimize pass if writing was cancelled 2024-11-29 12:53:12 +01:00
Stephen Flynn 5e0e5b677e Updated readme with documentation on build and run basics for future contributors (#38) 2024-11-24 08:39:14 +01:00
50 changed files with 3532 additions and 326 deletions

No files matched your search

+251
View File
@@ -0,0 +1,251 @@
{
"AF": "Afghanistan",
"AX": "Aland Islands",
"AL": "Albania",
"DZ": "Algeria",
"AS": "American Samoa",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarctica",
"AG": "Antigua and Barbuda",
"AR": "Argentina",
"AM": "Armenia",
"AW": "Aruba",
"AU": "Australia",
"AT": "Austria",
"AZ": "Azerbaijan",
"BS": "Bahamas",
"BH": "Bahrain",
"BD": "Bangladesh",
"BB": "Barbados",
"BY": "Belarus",
"BE": "Belgium",
"BZ": "Belize",
"BJ": "Benin",
"BM": "Bermuda",
"BT": "Bhutan",
"BO": "Bolivia",
"BQ": "Bonaire, Sint Eustatius and Saba",
"BA": "Bosnia and Herzegovina",
"BW": "Botswana",
"BV": "Bouvet Island",
"BR": "Brazil",
"IO": "British Indian Ocean Territory",
"BN": "Brunei Darussalam",
"BG": "Bulgaria",
"BF": "Burkina Faso",
"BI": "Burundi",
"CV": "Cabo Verde",
"KH": "Cambodia",
"CM": "Cameroon",
"CA": "Canada",
"KY": "Cayman Islands",
"CF": "Central African Republic",
"TD": "Chad",
"CL": "Chile",
"CN": "China",
"CX": "Christmas Island",
"CC": "Cocos Keeling Islands",
"CO": "Colombia",
"KM": "Comoros",
"CG": "Congo",
"CD": "Congo, DR",
"CK": "Cook Islands",
"CR": "Costa Rica",
"CI": "Cote d'Ivoire",
"HR": "Croatia",
"CU": "Cuba",
"CY": "Cyprus",
"CZ": "Czechia",
"DK": "Denmark",
"DJ": "Djibouti",
"DM": "Dominica",
"DO": "Dominican Republic",
"EC": "Ecuador",
"EG": "Egypt",
"SV": "El Salvador",
"GQ": "Equatorial Guinea",
"ER": "Eritrea",
"EE": "Estonia",
"SZ": "Eswatini",
"ET": "Ethiopia",
"FK": "Falkland Islands Malvinas",
"FO": "Faroe Islands",
"FJ": "Fiji",
"FI": "Finland",
"FR": "France",
"GF": "French Guiana",
"PF": "French Polynesia",
"TF": "French Southern Territories",
"GA": "Gabon",
"GM": "Gambia",
"GE": "Georgia",
"DE": "Germany",
"GH": "Ghana",
"GI": "Gibraltar",
"GR": "Greece",
"GL": "Greenland",
"GD": "Grenada",
"GP": "Guadeloupe",
"GU": "Guam",
"GT": "Guatemala",
"GG": "Guernsey",
"GN": "Guinea",
"GW": "Guinea Bissau",
"GY": "Guyana",
"HT": "Haiti",
"HM": "Heard Island and Mcdonald Islands",
"VA": "Holy See",
"HN": "Honduras",
"HK": "Hong Kong",
"HU": "Hungary",
"IS": "Iceland",
"IN": "India",
"ID": "Indonesia",
"IR": "Iran",
"IQ": "Iraq",
"IE": "Ireland",
"IM": "Isle of Man",
"IL": "Israel",
"IT": "Italy",
"JM": "Jamaica",
"JP": "Japan",
"JE": "Jersey",
"JO": "Jordan",
"KZ": "Kazakhstan",
"KE": "Kenya",
"KI": "Kiribati",
"KR": "Korea",
"KP": "Korea, DPR",
"KW": "Kuwait",
"KG": "Kyrgyzstan",
"LA": "Lao People's Democratic Republic",
"LV": "Latvia",
"LB": "Lebanon",
"LS": "Lesotho",
"LR": "Liberia",
"LY": "Libya",
"LI": "Liechtenstein",
"LT": "Lithuania",
"LU": "Luxembourg",
"MO": "Macao",
"MG": "Madagascar",
"MW": "Malawi",
"MY": "Malaysia",
"MV": "Maldives",
"ML": "Mali",
"MT": "Malta",
"MH": "Marshall Islands",
"MQ": "Martinique",
"MR": "Mauritania",
"MU": "Mauritius",
"YT": "Mayotte",
"MX": "Mexico",
"FM": "Micronesia",
"MD": "Moldova",
"MC": "Monaco",
"MN": "Mongolia",
"ME": "Montenegro",
"MS": "Montserrat",
"MA": "Morocco",
"MZ": "Mozambique",
"MM": "Myanmar",
"NA": "Namibia",
"NR": "Nauru",
"NP": "Nepal",
"NL": "Netherlands",
"NT": "Neutral Zone",
"NC": "New Caledonia",
"NZ": "New Zealand",
"NI": "Nicaragua",
"NE": "Niger",
"NG": "Nigeria",
"NU": "Niue",
"NF": "Norfolk Island",
"MK": "North Macedonia",
"MP": "Northern Mariana Islands",
"NO": "Norway",
"OM": "Oman",
"PK": "Pakistan",
"PW": "Palau",
"PS": "Palestine",
"PA": "Panama",
"PG": "Papua New Guinea",
"PY": "Paraguay",
"PE": "Peru",
"PH": "Philippines",
"PN": "Pitcairn",
"PL": "Poland",
"PT": "Portugal",
"PR": "Puerto Rico",
"QA": "Qatar",
"RE": "Reunion",
"RO": "Romania",
"RU": "Russian Federation",
"RW": "Rwanda",
"BL": "Saint Barthelemy",
"SH": "Saint Helena, Ascension and Tristan da Cunha",
"KN": "Saint Kitts and Nevis",
"LC": "Saint Lucia",
"MF": "Saint Martin",
"PM": "Saint Pierre and Miquelon",
"VC": "Saint Vincent and the Grenadines",
"WS": "Samoa",
"SM": "San Marino",
"ST": "Sao Tome and Principe",
"SA": "Saudi Arabia",
"SN": "Senegal",
"RS": "Serbia",
"SC": "Seychelles",
"SL": "Sierra Leone",
"SG": "Singapore",
"SX": "Sint Maarten",
"SK": "Slovakia",
"SI": "Slovenia",
"SB": "Solomon Islands",
"SO": "Somalia",
"ZA": "South Africa",
"GS": "South Georgia And South Sandwich Islands",
"SS": "South Sudan",
"ES": "Spain",
"LK": "Sri Lanka",
"SD": "Sudan",
"SR": "Suriname",
"SJ": "Svalbard and Jan Mayen",
"SE": "Sweden",
"CH": "Switzerland",
"SY": "Syrian Arab Republic",
"TW": "Taiwan",
"TJ": "Tajikistan",
"TZ": "Tanzania",
"TH": "Thailand",
"TL": "Timor-Leste",
"TG": "Togo",
"TK": "Tokelau",
"TO": "Tonga",
"TT": "Trinidad and Tobago",
"TN": "Tunisia",
"TR": "Turkiye",
"TM": "Turkmenistan",
"TC": "Turks and Caicos Islands",
"TV": "Tuvalu",
"UG": "Uganda",
"UA": "Ukraine",
"AE": "United Arab Emirates",
"GB": "United Kingdom",
"US": "United States of America",
"UM": "United States Minor Outlying Islands",
"UY": "Uruguay",
"UZ": "Uzbekistan",
"VU": "Vanuatu",
"VE": "Venezuela",
"VN": "Viet Nam",
"VG": "Virgin Islands, British",
"VI": "Virgin Islands, U.S.",
"WF": "Wallis and Futuna",
"EH": "Western Sahara",
"YE": "Yemen",
"ZM": "Zambia",
"ZW": "Zimbabwe"
}
+6
View File
@@ -36,6 +36,12 @@
<action selector="checkOnlyTracksWithSameLanguage:" target="-2" id="3Gg-ed-oeo"/> <action selector="checkOnlyTracksWithSameLanguage:" target="-2" id="3Gg-ed-oeo"/>
</connections> </connections>
</menuItem> </menuItem>
<menuItem title="Check only selected tracks" id="KMR-fY-lFl">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="checkOnlySelectedTracks:" target="-2" id="6Fc-pF-u5c"/>
</connections>
</menuItem>
</items> </items>
<point key="canvasLocation" x="139" y="146"/> <point key="canvasLocation" x="139" y="146"/>
</menu> </menu>
+63 -32
View File
@@ -21,25 +21,26 @@
<string>windowSize</string> <string>windowSize</string>
<string>rememberWindowSize</string> <string>rememberWindowSize</string>
<string>chaptersPreviewTrack</string> <string>chaptersPreviewTrack</string>
<string>SBLogFormat</string>
</declaredKeys> </declaredKeys>
</userDefaultsController> </userDefaultsController>
<customView id="76"> <customView id="76">
<rect key="frame" x="0.0" y="0.0" width="660" height="299"/> <rect key="frame" x="0.0" y="0.0" width="660" height="316"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<customView translatesAutoresizingMaskIntoConstraints="NO" id="dxI-5Q-gDD"> <customView translatesAutoresizingMaskIntoConstraints="NO" id="dxI-5Q-gDD">
<rect key="frame" x="136" y="0.0" width="389" height="299"/> <rect key="frame" x="133" y="0.0" width="395" height="316"/>
<subviews> <subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XPF-Mh-XYC"> <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XPF-Mh-XYC">
<rect key="frame" x="147" y="139" width="57" height="14"/> <rect key="frame" x="147" y="150" width="57" height="14"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Beginning" id="3Vs-qA-7Z6"> <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Beginning" id="3Vs-qA-7Z6">
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="249"> <textField focusRingType="none" verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="249">
<rect key="frame" x="129" y="95" width="165" height="14"/> <rect key="frame" x="129" y="107" width="165" height="14"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="USA ratings are always shown." id="250"> <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="USA ratings are always shown." id="250">
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -47,7 +48,7 @@
</textFieldCell> </textFieldCell>
</textField> </textField>
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="133"> <button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="133">
<rect key="frame" x="125" y="44" width="188" height="32"/> <rect key="frame" x="124" y="43" width="182" height="32"/>
<buttonCell key="cell" type="push" title="Clear recent searches" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="134"> <buttonCell key="cell" type="push" title="Clear recent searches" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="134">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
@@ -57,7 +58,7 @@
</connections> </connections>
</button> </button>
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="80"> <button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="80">
<rect key="frame" x="129" y="204" width="117" height="18"/> <rect key="frame" x="129" y="217" width="121" height="18"/>
<buttonCell key="cell" type="check" title="Remember Size" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="86"> <buttonCell key="cell" type="check" title="Remember Size" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="86">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
@@ -70,8 +71,8 @@
</binding> </binding>
</connections> </connections>
</button> </button>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="139"> <textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="139">
<rect key="frame" x="18" y="54" width="107" height="16"/> <rect key="frame" x="18" y="53" width="107" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Privacy:" id="140"> <textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Privacy:" id="140">
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -79,7 +80,7 @@
</textFieldCell> </textFieldCell>
</textField> </textField>
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="82"> <button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="82">
<rect key="frame" x="129" y="180" width="232" height="18"/>
<buttonCell key="cell" type="check" title="Create Preview Images at position:" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="84"> <buttonCell key="cell" type="check" title="Create Preview Images at position:" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="84">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
@@ -93,15 +94,15 @@
</connections> </connections>
</button> </button>
<slider verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="JhA-jk-CGt"> <slider verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="JhA-jk-CGt">
<rect key="frame" x="147" y="152" width="214" height="24"/> <rect key="frame" x="147" y="158" width="220" height="28"/>
<sliderCell key="cell" state="on" alignment="left" maxValue="1" doubleValue="0.5" tickMarkPosition="below" numberOfTickMarks="7" sliderType="linear" id="iKX-dX-4IV"/> <sliderCell key="cell" state="on" alignment="left" maxValue="1" doubleValue="0.5" tickMarkPosition="below" numberOfTickMarks="7" sliderType="linear" id="iKX-dX-4IV"/>
<connections> <connections>
<binding destination="3" name="value" keyPath="values.SBChaptersPreviewPosition" id="JtQ-lM-MNU"/> <binding destination="3" name="value" keyPath="values.SBChaptersPreviewPosition" id="JtQ-lM-MNU"/>
<binding destination="3" name="enabled" keyPath="values.chaptersPreviewTrack" id="hNU-uO-zsL"/> <binding destination="3" name="enabled" keyPath="values.chaptersPreviewTrack" id="hNU-uO-zsL"/>
</connections> </connections>
</slider> </slider>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="206"> <textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="206">
<rect key="frame" x="18" y="115" width="107" height="16"/> <rect key="frame" x="18" y="126" width="107" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Show ratings for:" id="207"> <textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Show ratings for:" id="207">
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -109,7 +110,7 @@
</textFieldCell> </textFieldCell>
</textField> </textField>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="136"> <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="136">
<rect key="frame" x="125" y="13" width="188" height="32"/> <rect key="frame" x="124" y="13" width="182" height="32"/>
<buttonCell key="cell" type="push" title="Delete cached metadata" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="137"> <buttonCell key="cell" type="push" title="Delete cached metadata" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="137">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
@@ -118,8 +119,8 @@
<action selector="deleteCachedMetadata:" target="-2" id="141"/> <action selector="deleteCachedMetadata:" target="-2" id="141"/>
</connections> </connections>
</button> </button>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="81"> <textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="81">
<rect key="frame" x="18" y="181" width="107" height="16"/> <rect key="frame" x="18" y="192" width="107" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Chapters:" id="85"> <textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Chapters:" id="85">
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -127,7 +128,7 @@
</textFieldCell> </textFieldCell>
</textField> </textField>
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="B5v-6Q-3Qa"> <button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="B5v-6Q-3Qa">
<rect key="frame" x="129" y="242" width="242" height="18"/> <rect key="frame" x="129" y="257" width="246" height="18"/>
<buttonCell key="cell" type="check" title="Automatically check for update daily" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="2Pf-pq-4IX"> <buttonCell key="cell" type="check" title="Automatically check for update daily" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="2Pf-pq-4IX">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
@@ -136,32 +137,48 @@
<binding destination="3" name="value" keyPath="values.SUEnableAutomaticChecks" id="6AF-uh-wt7"/> <binding destination="3" name="value" keyPath="values.SUEnableAutomaticChecks" id="6AF-uh-wt7"/>
</connections> </connections>
</button> </button>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="77"> <textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="77">
<rect key="frame" x="18" y="263" width="107" height="16"/> <rect key="frame" x="18" y="280" width="107" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="At Launch:" id="89"> <textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="At Launch:" id="89">
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tVb-Qq-sU7"> <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tVb-Qq-sU7">
<rect key="frame" x="337" y="139" width="24" height="14"/> <rect key="frame" x="343" y="150" width="24" height="14"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="End" id="He0-rl-DBi"> <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="End" id="He0-rl-DBi">
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="78"> <textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="78">
<rect key="frame" x="18" y="205" width="107" height="16"/> <rect key="frame" x="18" y="218" width="107" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Window:" id="88"> <textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Window:" id="88">
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<popUpButton verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="logFormatPopup">
<rect key="frame" x="128" y="75" width="187" height="25"/>
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="logFormatCell">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="message"/>
<menu key="menu" id="logFormatMenu"/>
</popUpButtonCell>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="180" id="logFormatWidth"/>
</constraints>
<connections>
<accessibilityConnection property="title" destination="logFormatLabel" id="logFormatAccessibility"/>
<binding destination="-2" name="content" keyPath="logFormatOptions" id="logFormatContentBinding"/>
<binding destination="3" name="selectedTag" keyPath="values.SBLogFormat" previousBinding="logFormatContentBinding" id="logFormatBinding"/>
</connections>
</popUpButton>
<button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="79"> <button verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="79">
<rect key="frame" x="129" y="262" width="126" height="18"/> <rect key="frame" x="129" y="279" width="130" height="18"/>
<buttonCell key="cell" type="check" title="Show open panel" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="87"> <buttonCell key="cell" type="check" title="Show open panel" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="87">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
@@ -171,15 +188,15 @@
</connections> </connections>
</button> </button>
<popUpButton verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="236"> <popUpButton verticalHuggingPriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="236">
<rect key="frame" x="129" y="108" width="185" height="25"/> <rect key="frame" x="128" y="119" width="187" height="25"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="180" id="mhj-Zx-MME"/>
</constraints>
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="237"> <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="237">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/> <font key="font" metaFont="system"/>
<menu key="menu" id="238"/> <menu key="menu" id="238"/>
</popUpButtonCell> </popUpButtonCell>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="180" id="mhj-Zx-MME"/>
</constraints>
<connections> <connections>
<accessibilityConnection property="title" destination="206" id="SzO-00-e3U"/> <accessibilityConnection property="title" destination="206" id="SzO-00-e3U"/>
<action selector="updateRatingsCountry:" target="-2" id="242"/> <action selector="updateRatingsCountry:" target="-2" id="242"/>
@@ -187,14 +204,22 @@
<binding destination="123" name="selectedValue" keyPath="values.SBRatingsCountry" previousBinding="245" id="248"/> <binding destination="123" name="selectedValue" keyPath="values.SBRatingsCountry" previousBinding="245" id="248"/>
</connections> </connections>
</popUpButton> </popUpButton>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mNP-6I-gV4"> <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mNP-6I-gV4">
<rect key="frame" x="232" y="139" width="44" height="14"/> <rect key="frame" x="235" y="150" width="44" height="14"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="Middle" id="2o1-dB-mt1"> <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="Middle" id="2o1-dB-mt1">
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField focusRingType="none" horizontalHuggingPriority="249" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="logFormatLabel">
<rect key="frame" x="18" y="82" width="107" height="16"/>
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="right" title="Log Format:" id="logFormatLabelCell">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
</subviews> </subviews>
<constraints> <constraints>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="236" secondAttribute="trailing" constant="20" symbolic="YES" id="1oW-ke-hqe"/> <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="236" secondAttribute="trailing" constant="20" symbolic="YES" id="1oW-ke-hqe"/>
@@ -212,7 +237,7 @@
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="79" secondAttribute="trailing" constant="20" symbolic="YES" id="C2B-fq-5vM"/> <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="79" secondAttribute="trailing" constant="20" symbolic="YES" id="C2B-fq-5vM"/>
<constraint firstItem="81" firstAttribute="leading" secondItem="78" secondAttribute="leading" id="Ctg-6r-Vpm"/> <constraint firstItem="81" firstAttribute="leading" secondItem="78" secondAttribute="leading" id="Ctg-6r-Vpm"/>
<constraint firstAttribute="bottom" secondItem="136" secondAttribute="bottom" constant="20" symbolic="YES" id="Cxf-3a-EqU"/> <constraint firstAttribute="bottom" secondItem="136" secondAttribute="bottom" constant="20" symbolic="YES" id="Cxf-3a-EqU"/>
<constraint firstItem="133" firstAttribute="top" secondItem="249" secondAttribute="bottom" constant="23" id="DFU-xm-8vq"/> <constraint firstItem="133" firstAttribute="top" secondItem="249" secondAttribute="bottom" constant="37" id="DFU-xm-8vq"/>
<constraint firstItem="B5v-6Q-3Qa" firstAttribute="leading" secondItem="79" secondAttribute="leading" id="FJg-U6-HDs"/> <constraint firstItem="B5v-6Q-3Qa" firstAttribute="leading" secondItem="79" secondAttribute="leading" id="FJg-U6-HDs"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="B5v-6Q-3Qa" secondAttribute="trailing" constant="20" id="J3X-XR-5sZ"/> <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="B5v-6Q-3Qa" secondAttribute="trailing" constant="20" id="J3X-XR-5sZ"/>
<constraint firstItem="82" firstAttribute="leading" secondItem="81" secondAttribute="trailing" constant="8" id="LHd-r8-b8o"/> <constraint firstItem="82" firstAttribute="leading" secondItem="81" secondAttribute="trailing" constant="8" id="LHd-r8-b8o"/>
@@ -241,6 +266,12 @@
<constraint firstItem="mNP-6I-gV4" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="XPF-Mh-XYC" secondAttribute="trailing" constant="8" symbolic="YES" id="jyx-OY-6tw"/> <constraint firstItem="mNP-6I-gV4" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="XPF-Mh-XYC" secondAttribute="trailing" constant="8" symbolic="YES" id="jyx-OY-6tw"/>
<constraint firstItem="133" firstAttribute="firstBaseline" secondItem="139" secondAttribute="firstBaseline" id="kA6-a1-Krp"/> <constraint firstItem="133" firstAttribute="firstBaseline" secondItem="139" secondAttribute="firstBaseline" id="kA6-a1-Krp"/>
<constraint firstItem="249" firstAttribute="leading" secondItem="236" secondAttribute="leading" id="kh1-gL-cmS"/> <constraint firstItem="249" firstAttribute="leading" secondItem="236" secondAttribute="leading" id="kh1-gL-cmS"/>
<constraint firstItem="logFormatPopup" firstAttribute="firstBaseline" secondItem="logFormatLabel" secondAttribute="firstBaseline" id="logFormatBaseline"/>
<constraint firstItem="logFormatLabel" firstAttribute="leading" secondItem="78" secondAttribute="leading" id="logFormatLabelLeading"/>
<constraint firstItem="logFormatLabel" firstAttribute="width" secondItem="78" secondAttribute="width" id="logFormatLabelWidth"/>
<constraint firstItem="logFormatPopup" firstAttribute="leading" secondItem="logFormatLabel" secondAttribute="trailing" constant="8" id="logFormatLeading"/>
<constraint firstItem="logFormatLabel" firstAttribute="top" secondItem="80" secondAttribute="bottom" constant="120" id="logFormatTop"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="logFormatPopup" secondAttribute="trailing" constant="20" symbolic="YES" id="logFormatTrailing"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="249" secondAttribute="trailing" constant="20" symbolic="YES" id="mef-Mj-rvp"/> <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="249" secondAttribute="trailing" constant="20" symbolic="YES" id="mef-Mj-rvp"/>
<constraint firstItem="236" firstAttribute="leading" secondItem="206" secondAttribute="trailing" constant="8" id="n47-AS-gXR"/> <constraint firstItem="236" firstAttribute="leading" secondItem="206" secondAttribute="trailing" constant="8" id="n47-AS-gXR"/>
<constraint firstItem="80" firstAttribute="leading" secondItem="78" secondAttribute="trailing" constant="8" id="nPD-Zb-eKT"/> <constraint firstItem="80" firstAttribute="leading" secondItem="78" secondAttribute="trailing" constant="8" id="nPD-Zb-eKT"/>
+32 -14
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="23727" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="23727"/>
</dependencies> </dependencies>
<objects> <objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication"> <customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
@@ -147,12 +147,13 @@
<action selector="sendToQueue:" target="-1" id="599"/> <action selector="sendToQueue:" target="-1" id="599"/>
</connections> </connections>
</menuItem> </menuItem>
<menuItem title="Send To iTunes" id="597" userLabel="10"> <menuItem title="Send To iTunes" keyEquivalent="I" id="597" userLabel="10">
<modifierMask key="keyEquivalentModifierMask"/> <modifierMask key="keyEquivalentModifierMask"/>
<connections> <connections>
<action selector="sendToExternalApp:" target="-1" id="598"/> <action selector="sendToExternalApp:" target="-1" id="598"/>
</connections> </connections>
</menuItem> </menuItem>
<menuItem isSeparatorItem="YES" id="Wqy-Ps-5Qb"/>
<menuItem title="Import" id="544"> <menuItem title="Import" id="544">
<modifierMask key="keyEquivalentModifierMask"/> <modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Import" id="545"> <menu key="submenu" title="Import" id="545">
@@ -184,6 +185,23 @@
<menuItem isSeparatorItem="YES" id="74" userLabel="2"> <menuItem isSeparatorItem="YES" id="74" userLabel="2">
<modifierMask key="keyEquivalentModifierMask" command="YES"/> <modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem> </menuItem>
<menuItem title="Start Queue" keyEquivalent="B" id="TRh-ZN-Id8">
<connections>
<action selector="toggleStartStop:" target="449" id="ea4-oe-9YQ"/>
</connections>
</menuItem>
<menuItem title="Remove completed items from queue" id="Cre-T6-PID">
<string key="keyEquivalent" base64-UTF8="YES">
CA
</string>
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
<connections>
<action selector="removeCompletedItems:" target="-1" id="ouO-db-qWo"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="7Ls-cX-HSz" userLabel="2">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Page Setup..." keyEquivalent="P" id="77" userLabel="5"> <menuItem title="Page Setup..." keyEquivalent="P" id="77" userLabel="5">
<modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/> <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
<connections> <connections>
@@ -241,8 +259,8 @@
</connections> </connections>
</menuItem> </menuItem>
<menuItem isSeparatorItem="YES" id="532"/> <menuItem isSeparatorItem="YES" id="532"/>
<menuItem title="Offset…" id="567"> <menuItem title="Offset…" keyEquivalent="o" id="567">
<modifierMask key="keyEquivalentModifierMask"/> <modifierMask key="keyEquivalentModifierMask" option="YES"/>
<connections> <connections>
<action selector="showTrackOffsetSheet:" target="-1" id="570"/> <action selector="showTrackOffsetSheet:" target="-1" id="570"/>
</connections> </connections>
@@ -309,31 +327,31 @@
</items> </items>
</menu> </menu>
</menuItem> </menuItem>
<menuItem title="Organize alternate groups" id="652"> <menuItem title="Organize alternate groups" keyEquivalent="g" id="652">
<modifierMask key="keyEquivalentModifierMask"/> <modifierMask key="keyEquivalentModifierMask" option="YES"/>
<connections> <connections>
<action selector="iTunesFriendlyTrackGroups:" target="-1" id="654"/> <action selector="iTunesFriendlyTrackGroups:" target="-1" id="654"/>
</connections> </connections>
</menuItem> </menuItem>
<menuItem title="Clear tracks names" id="hKY-N2-NzK"> <menuItem title="Clear tracks names" keyEquivalent="n" id="hKY-N2-NzK">
<modifierMask key="keyEquivalentModifierMask"/> <modifierMask key="keyEquivalentModifierMask" option="YES"/>
<connections> <connections>
<action selector="clearTrackNames:" target="-1" id="KsZ-tN-sdV"/> <action selector="clearTrackNames:" target="-1" id="KsZ-tN-sdV"/>
</connections> </connections>
</menuItem> </menuItem>
<menuItem title="Prettify audio track names" id="fm8-d2-1Yi"> <menuItem title="Prettify audio track names" keyEquivalent="p" id="fm8-d2-1Yi">
<modifierMask key="keyEquivalentModifierMask"/> <modifierMask key="keyEquivalentModifierMask" option="YES"/>
<connections> <connections>
<action selector="prettifyAudioTrackNames:" target="-1" id="z63-Uv-MTO"/> <action selector="prettifyAudioTrackNames:" target="-1" id="z63-Uv-MTO"/>
</connections> </connections>
</menuItem> </menuItem>
<menuItem title="Fix audio fallbacks" id="FXb-bX-0Wb"> <menuItem title="Fix audio fallbacks" keyEquivalent="f" id="FXb-bX-0Wb">
<modifierMask key="keyEquivalentModifierMask"/> <modifierMask key="keyEquivalentModifierMask" option="YES"/>
<connections> <connections>
<action selector="fixAudioFallbacks:" target="-1" id="cpY-If-3df"/> <action selector="fixAudioFallbacks:" target="-1" id="cpY-If-3df"/>
</connections> </connections>
</menuItem> </menuItem>
<menuItem isSeparatorItem="YES" id="568"/> <menuItem isSeparatorItem="YES" id="yw4-pb-tNR"/>
<menuItem title="Find" id="218"> <menuItem title="Find" id="218">
<menu key="submenu" title="Find" id="220"> <menu key="submenu" title="Find" id="220">
<items> <items>
+3 -3
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="18122" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="23504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="18122"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="23504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
@@ -13,7 +13,7 @@
</customObject> </customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/> <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window title="Preferences" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="1" customClass="PrefsWindow" customModule="Subler" customModuleProvider="target"> <window title="Preferences" allowsToolTipsWhenApplicationIsInactive="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="1" customClass="PrefsWindow" customModule="Subler" customModuleProvider="target">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/> <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
<windowPositionMask key="initialPositionMask" topStrut="YES" bottomStrut="YES"/> <windowPositionMask key="initialPositionMask" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="625" y="560" width="660" height="220"/> <rect key="contentRect" x="625" y="560" width="660" height="220"/>
+21 -25
View File
@@ -62,38 +62,15 @@ final class DocumentController : NSDocumentController {
} }
@NSApplicationMain @NSApplicationMain
final class AppDelegate: NSObject, NSApplicationDelegate { final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuItemValidation {
@IBOutlet weak var sendToExternalApp: NSMenuItem! @IBOutlet weak var sendToExternalApp: NSMenuItem!
private static func appSupportURL() -> URL {
let fileManager = FileManager.default
if let url = fileManager.urls(for: .applicationSupportDirectory, in: .userDomainMask)
.first?.appendingPathComponent("Subler") {
do {
if fileManager.fileExists(atPath: url.path) == false {
try fileManager.createDirectory(at: url, withIntermediateDirectories: true, attributes: [:])
}
}
catch _ {
fatalError("Couldn't create the app support directory")
}
return url
}
else {
fatalError("Couldn't find the app support directory")
}
}
@MainActor private lazy var prefsController: PrefsWindowController = { @MainActor private lazy var prefsController: PrefsWindowController = {
return PrefsWindowController() return PrefsWindowController()
}() }()
private lazy var logger: Logger = { private let logger = Logger.shared
return Logger(fileURL: AppDelegate.appSupportURL().appendingPathComponent("debugLog.txt"))
}()
@MainActor private lazy var activityWindowController: ActivityWindowController = { @MainActor private lazy var activityWindowController: ActivityWindowController = {
return ActivityWindowController(logger: logger) return ActivityWindowController(logger: logger)
@@ -236,6 +213,25 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
return false return false
} }
@IBAction func toggleStartStop(_ sender: Any?) {
QueueController.shared.toggleStartStop(sender)
}
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
let action = menuItem.action
if action == #selector(toggleStartStop(_:)) {
let state = QueueController.shared.status
if state == .working {
menuItem.title = NSLocalizedString("Stop Queue", comment: "Main Menu -> Stop Queue")
} else {
menuItem.title = NSLocalizedString("Start Queue", comment: "Main Menu -> Start Queue")
}
}
return true
}
// MARK: actions // MARK: actions
@IBAction func openInQueue(_ sender: Any) { @IBAction func openInQueue(_ sender: Any) {
+13 -8
View File
@@ -205,9 +205,9 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
} }
override func viewWillAppear() { override func viewWillAppear() {
if let layout = imageBrowser.collectionViewLayout as? NSCollectionViewFlowLayout { let zoomValue = Prefs.artworkSelectorZoomLevel
layout.itemSize = standardSize setZoomValue(zoomValue)
} slider.floatValue = zoomValue
} }
@IBAction func loadMoreArtwork(_ sender: Any) { @IBAction func loadMoreArtwork(_ sender: Any) {
@@ -216,23 +216,28 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou
// MARK: - User Interface // MARK: - User Interface
@IBAction func zoomSliderDidChange(_ sender: Any) { private func setZoomValue(_ newZoomValue: Float) {
if let layout = imageBrowser.collectionViewLayout as? NSCollectionViewFlowLayout { if let layout = imageBrowser.collectionViewLayout as? NSCollectionViewFlowLayout {
if slider.floatValue == 50 { if newZoomValue == 50 {
layout.itemSize = standardSize layout.itemSize = standardSize
} else if slider.floatValue < 50 { } else if newZoomValue < 50 {
let zoomValue = (CGFloat(slider.floatValue) + 50) / 100 let zoomValue = (CGFloat(newZoomValue) + 50) / 100
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue), layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
height: Int((standardSize.height - 32) * zoomValue + 32)) height: Int((standardSize.height - 32) * zoomValue + 32))
} else { } else {
let zoomValue = pow((CGFloat(slider.floatValue) + 50) / 100, 2.4) let zoomValue = pow((CGFloat(newZoomValue) + 50) / 100, 2.4)
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue), layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
height: Int((standardSize.height - 32) * zoomValue + 32)) height: Int((standardSize.height - 32) * zoomValue + 32))
} }
} }
} }
@IBAction func zoomSliderDidChange(_ sender: Any) {
setZoomValue(slider.floatValue)
Prefs.artworkSelectorZoomLevel = slider.floatValue
}
fileprivate func reloadItem(_ item: ArtworkImageObject) { fileprivate func reloadItem(_ item: ArtworkImageObject) {
let selectionIndexPaths = imageBrowser.selectionIndexPaths let selectionIndexPaths = imageBrowser.selectionIndexPaths
+4 -4
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="23504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="23504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
@@ -19,7 +19,7 @@
<rect key="frame" x="0.0" y="0.0" width="128" height="171"/> <rect key="frame" x="0.0" y="0.0" width="128" height="171"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews> <subviews>
<textField wantsLayer="YES" horizontalHuggingPriority="251" verticalHuggingPriority="750" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Wkh-6c-0tU" customClass="ArtworkSelectorViewItemLabel" customModule="Subler" customModuleProvider="target"> <textField wantsLayer="YES" focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Wkh-6c-0tU" customClass="ArtworkSelectorViewItemLabel" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="-4" y="17" width="136" height="15"/> <rect key="frame" x="-4" y="17" width="136" height="15"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" alignment="center" title="Label" usesSingleLineMode="YES" id="TsL-Ak-xnf"> <textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" alignment="center" title="Label" usesSingleLineMode="YES" id="TsL-Ak-xnf">
<font key="font" metaFont="cellTitle"/> <font key="font" metaFont="cellTitle"/>
@@ -27,7 +27,7 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField wantsLayer="YES" horizontalHuggingPriority="251" verticalHuggingPriority="750" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fGU-Kh-WjD"> <textField wantsLayer="YES" focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" textCompletion="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fGU-Kh-WjD">
<rect key="frame" x="-4" y="4" width="136" height="13"/> <rect key="frame" x="-4" y="4" width="136" height="13"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" alignment="center" title="Label" usesSingleLineMode="YES" id="ggX-Q2-CZ0"> <textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" alignment="center" title="Label" usesSingleLineMode="YES" id="ggX-Q2-CZ0">
<font key="font" metaFont="system" size="10"/> <font key="font" metaFont="system" size="10"/>
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="23504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22690"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="23504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
@@ -22,6 +22,7 @@
<outlet property="setsPopUp" destination="179" id="hl9-DS-qsm"/> <outlet property="setsPopUp" destination="179" id="hl9-DS-qsm"/>
<outlet property="tagsPopUp" destination="30" id="1v4-T2-oDW"/> <outlet property="tagsPopUp" destination="30" id="1v4-T2-oDW"/>
<outlet property="view" destination="1" id="2"/> <outlet property="view" destination="1" id="2"/>
<outlet property="zoomSlider" destination="235" id="fFP-8i-4SK"/>
</connections> </connections>
</customObject> </customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
@@ -131,7 +132,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target"> <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="447" height="225"/> <rect key="frame" x="0.0" y="0.0" width="446" height="225"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="2"/> <size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -175,7 +176,7 @@
</tableCellView> </tableCellView>
</prototypeCellViews> </prototypeCellViews>
</tableColumn> </tableColumn>
<tableColumn identifier="value" width="314" minWidth="40" maxWidth="4000" id="os0-Yb-exW"> <tableColumn identifier="value" width="285" minWidth="40" maxWidth="4000" id="os0-Yb-exW">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Value"> <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Value">
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
@@ -188,11 +189,11 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/> <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews> <prototypeCellViews>
<tableCellView identifier="TextCell" id="mjh-te-NdK"> <tableCellView identifier="TextCell" id="mjh-te-NdK">
<rect key="frame" x="127" y="1" width="318" height="14"/> <rect key="frame" x="127" y="1" width="289" height="14"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="T0o-RG-lfn"> <textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="T0o-RG-lfn">
<rect key="frame" x="0.0" y="0.0" width="318" height="14"/> <rect key="frame" x="0.0" y="0.0" width="289" height="14"/>
<textFieldCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" id="WRR-52-lxo"> <textFieldCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" id="WRR-52-lxo">
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -214,11 +215,11 @@
</connections> </connections>
</tableCellView> </tableCellView>
<tableCellView identifier="TextCellForSizing" id="OUW-Fk-klv"> <tableCellView identifier="TextCellForSizing" id="OUW-Fk-klv">
<rect key="frame" x="127" y="17" width="318" height="14"/> <rect key="frame" x="127" y="17" width="289" height="14"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AmC-rT-7Rf"> <textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AmC-rT-7Rf">
<rect key="frame" x="0.0" y="0.0" width="318" height="14"/> <rect key="frame" x="0.0" y="0.0" width="289" height="14"/>
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" id="ipR-OL-rI2"> <textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" id="ipR-OL-rI2">
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -237,11 +238,11 @@
</connections> </connections>
</tableCellView> </tableCellView>
<tableCellView identifier="PopUpCell" id="JEU-aR-J9v" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target"> <tableCellView identifier="PopUpCell" id="JEU-aR-J9v" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="127" y="33" width="318" height="14"/> <rect key="frame" x="127" y="33" width="289" height="14"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="cFv-4U-VzM"> <popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="cFv-4U-VzM">
<rect key="frame" x="0.0" y="0.0" width="312" height="14"/> <rect key="frame" x="0.0" y="0.0" width="283" height="14"/>
<popUpButtonCell key="cell" type="bevel" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" imageScaling="proportionallyDown" inset="2" selectedItem="6Zb-NM-Mmo" id="Myn-C3-tc4"> <popUpButtonCell key="cell" type="bevel" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" imageScaling="proportionallyDown" inset="2" selectedItem="6Zb-NM-Mmo" id="Myn-C3-tc4">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
@@ -266,11 +267,11 @@
</connections> </connections>
</tableCellView> </tableCellView>
<tableCellView identifier="BoolCell" id="DGy-Nb-PAN" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target"> <tableCellView identifier="BoolCell" id="DGy-Nb-PAN" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="127" y="49" width="318" height="17"/> <rect key="frame" x="127" y="49" width="289" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<button translatesAutoresizingMaskIntoConstraints="NO" id="oyk-jS-zmh"> <button translatesAutoresizingMaskIntoConstraints="NO" id="oyk-jS-zmh">
<rect key="frame" x="2" y="-1" width="314" height="19"/> <rect key="frame" x="2" y="-1" width="285" height="19"/>
<buttonCell key="cell" type="check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="f5s-ar-fW6"> <buttonCell key="cell" type="check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="f5s-ar-fW6">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
@@ -291,11 +292,11 @@
</connections> </connections>
</tableCellView> </tableCellView>
<tableCellView identifier="ComboCell" id="vy5-48-Vip" customClass="ComboBoxCellView" customModule="Subler" customModuleProvider="target"> <tableCellView identifier="ComboCell" id="vy5-48-Vip" customClass="ComboBoxCellView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="127" y="68" width="318" height="17"/> <rect key="frame" x="127" y="68" width="289" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<comboBox focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="LbC-r6-Pau"> <comboBox focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="LbC-r6-Pau">
<rect key="frame" x="2" y="0.0" width="312" height="19"/> <rect key="frame" x="2" y="0.0" width="283" height="19"/>
<comboBoxCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" alignment="left" usesSingleLineMode="YES" buttonBordered="NO" numberOfVisibleItems="5" id="jkg-xz-Hbn"> <comboBoxCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" alignment="left" usesSingleLineMode="YES" buttonBordered="NO" numberOfVisibleItems="5" id="jkg-xz-Hbn">
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -326,7 +327,7 @@
</tableView> </tableView>
</subviews> </subviews>
</clipView> </clipView>
<scroller key="horizontalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="tkU-nC-Bdd"> <scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="tkU-nC-Bdd">
<rect key="frame" x="1" y="233" width="446" height="16"/> <rect key="frame" x="1" y="233" width="446" height="16"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</scroller> </scroller>
@@ -335,7 +336,7 @@
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</scroller> </scroller>
<tableHeaderView key="headerView" wantsLayer="YES" id="qXU-xB-xRF"> <tableHeaderView key="headerView" wantsLayer="YES" id="qXU-xB-xRF">
<rect key="frame" x="0.0" y="0.0" width="447" height="23"/> <rect key="frame" x="0.0" y="0.0" width="446" height="23"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</tableHeaderView> </tableHeaderView>
</scrollView> </scrollView>
+3 -2
View File
@@ -34,14 +34,15 @@ final class ButtonToolbarItem : NSToolbarItem {
super.init(itemIdentifier: itemIdentifier) super.init(itemIdentifier: itemIdentifier)
} }
init(itemIdentifier: NSToolbarItem.Identifier, label: String, toolTip: String, image: String, symbolName: String? = nil, action: Selector) { init(itemIdentifier: NSToolbarItem.Identifier, label: String, toolTip: String, image: String, symbolName: String? = nil, target: AnyObject?, action: Selector) {
super.init(itemIdentifier: itemIdentifier) super.init(itemIdentifier: itemIdentifier)
self.label = label self.label = label
self.paletteLabel = label self.paletteLabel = label
self.toolTip = toolTip self.toolTip = toolTip
self.setSymbol(symbolName: symbolName, fallbackName: image) self.target = target
self.action = action self.action = action
self.setSymbol(symbolName: symbolName, fallbackName: image)
if #available(macOS 14, *) { if #available(macOS 14, *) {
self.isBordered = true self.isBordered = true
+15 -1
View File
@@ -9,19 +9,23 @@ import Cocoa
import IOKit.pwr_mgt import IOKit.pwr_mgt
import MP42Foundation import MP42Foundation
@objc(SBDocument)
final class Document: NSDocument { final class Document: NSDocument {
private(set) var mp4: MP42File private(set) var mp4: MP42File
private var unsupportedMp4Brand: Bool private var unsupportedMp4Brand: Bool
override init() { override init() {
self.cancelled = false
self.options = [:] self.options = [:]
self.optimize = false self.optimize = false
self.unsupportedMp4Brand = false self.unsupportedMp4Brand = false
self.mp4 = MP42File() self.mp4 = MP42File()
super.init()
} }
init(mp4: MP42File) { init(mp4: MP42File) {
self.cancelled = false
self.options = [:] self.options = [:]
self.optimize = false self.optimize = false
self.unsupportedMp4Brand = false self.unsupportedMp4Brand = false
@@ -73,8 +77,11 @@ final class Document: NSDocument {
// MARK: Save // MARK: Save
override nonisolated class var autosavesInPlace: Bool { return false }
private var optimize: Bool private var optimize: Bool
private var options: [String : Any] private var options: [String : Any]
private var cancelled: Bool
private func saveOptions(for saveOperation: NSDocument.SaveOperationType) -> [String : Any] { private func saveOptions(for saveOperation: NSDocument.SaveOperationType) -> [String : Any] {
var options = [String : Any]() var options = [String : Any]()
@@ -132,6 +139,11 @@ final class Document: NSDocument {
super.save(to: url, ofType: typeName, for: saveOperation, completionHandler: modifiedCompletionhandler) super.save(to: url, ofType: typeName, for: saveOperation, completionHandler: modifiedCompletionhandler)
} }
func cancelSave() {
cancelled = true
mp4.cancel()
}
private var sleepAssertion: IOPMAssertionID = IOPMAssertionID(0) private var sleepAssertion: IOPMAssertionID = IOPMAssertionID(0)
private var sleepAssertionSuccess: IOReturn = kIOReturnInvalid private var sleepAssertionSuccess: IOReturn = kIOReturnInvalid
@@ -177,13 +189,15 @@ final class Document: NSDocument {
fatalError("Unsupported save operation") fatalError("Unsupported save operation")
} }
if optimize { if optimize && cancelled == false {
DispatchQueue.main.async { DispatchQueue.main.async {
let docController = self.windowControllers.first as? DocumentWindowController let docController = self.windowControllers.first as? DocumentWindowController
docController?.setProgress(title: NSLocalizedString("Optimizing…", comment: "Document Optimize sheet.")) docController?.setProgress(title: NSLocalizedString("Optimizing…", comment: "Document Optimize sheet."))
} }
mp4.optimize() mp4.optimize()
} }
cancelled = false
} }
// MARK: Save panel // MARK: Save panel
+14
View File
@@ -18,6 +18,8 @@ private extension NSToolbarItem.Identifier {
class DocumentToolbarDelegate: NSObject, NSToolbarDelegate { class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
weak var target: AnyObject?
@MainActor func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? { @MainActor func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? {
if itemIdentifier == .importTracks { if itemIdentifier == .importTracks {
@@ -26,6 +28,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Import tracks from external files", comment: "Toolbar"), toolTip: NSLocalizedString("Import tracks from external files", comment: "Toolbar"),
image: "NSAddTemplate", image: "NSAddTemplate",
symbolName: "plus", symbolName: "plus",
target: target,
action: #selector(DocumentWindowController.selectFile(_:))) action: #selector(DocumentWindowController.selectFile(_:)))
} else if itemIdentifier == .deleteTracks { } else if itemIdentifier == .deleteTracks {
return ButtonToolbarItem(itemIdentifier: itemIdentifier, return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -33,9 +36,17 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Delete the selected track", comment: "Toolbar"), toolTip: NSLocalizedString("Delete the selected track", comment: "Toolbar"),
image: "NSRemoveTemplate", image: "NSRemoveTemplate",
symbolName: "minus", symbolName: "minus",
target: target,
action: #selector(DocumentWindowController.deleteTrack(_:))) action: #selector(DocumentWindowController.deleteTrack(_:)))
} else if itemIdentifier == .actions { } else if itemIdentifier == .actions {
let submenu = NSMenu() let submenu = NSMenu()
let menuItem = NSMenuItem()
menuItem.title = NSLocalizedString("At the Beginning", comment: "Toolbar")
menuItem.action = #selector(DocumentWindowController.addChaptersEvery(_:))
menuItem.tag = -1
submenu.addItem(menuItem)
for minutes in [1, 2, 5, 10, 15, 20, 30] { for minutes in [1, 2, 5, 10, 15, 20, 30] {
let menuItem = NSMenuItem() let menuItem = NSMenuItem()
let title = minutes == 1 ? NSLocalizedString("1 minute", comment: "Toolbar") : let title = minutes == 1 ? NSLocalizedString("1 minute", comment: "Toolbar") :
@@ -109,6 +120,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Search metadata on the web", comment: "Toolbar"), toolTip: NSLocalizedString("Search metadata on the web", comment: "Toolbar"),
image: "NSRevealFreestandingTemplate", image: "NSRevealFreestandingTemplate",
symbolName: "sparkle.magnifyingglass", symbolName: "sparkle.magnifyingglass",
target: target,
action: #selector(DocumentWindowController.searchMetadata(_:))) action: #selector(DocumentWindowController.searchMetadata(_:)))
} else if itemIdentifier == .sendToQueue { } else if itemIdentifier == .sendToQueue {
return ButtonToolbarItem(itemIdentifier: itemIdentifier, return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -116,6 +128,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Send the current document to the queue", comment: "Toolbar"), toolTip: NSLocalizedString("Send the current document to the queue", comment: "Toolbar"),
image: "ToolbarActionTemplate", image: "ToolbarActionTemplate",
symbolName: "photo.badge.plus", symbolName: "photo.badge.plus",
target: target,
action: #selector(Document.sendToQueue(_:))) action: #selector(Document.sendToQueue(_:)))
} else if itemIdentifier == .showQueue { } else if itemIdentifier == .showQueue {
return ButtonToolbarItem(itemIdentifier: itemIdentifier, return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -123,6 +136,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Show the Queue window", comment: "Toolbar"), toolTip: NSLocalizedString("Show the Queue window", comment: "Toolbar"),
image: "ToolbarActionTemplate", image: "ToolbarActionTemplate",
symbolName: "photo.stack", symbolName: "photo.stack",
target: nil,
action: #selector(AppDelegate.showQueueWindow(_:))) action: #selector(AppDelegate.showQueueWindow(_:)))
} }
+29 -6
View File
@@ -43,6 +43,8 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
window.toolbarStyle = .expanded window.toolbarStyle = .expanded
} }
toolbarDelegate.target = self
let toolbar = NSToolbar(identifier: "SublerDocumentToolbar") let toolbar = NSToolbar(identifier: "SublerDocumentToolbar")
toolbar.delegate = toolbarDelegate toolbar.delegate = toolbarDelegate
toolbar.allowsUserCustomization = true toolbar.allowsUserCustomization = true
@@ -225,7 +227,8 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
#selector(iTunesFriendlyTrackGroups(_:)), #selector(iTunesFriendlyTrackGroups(_:)),
#selector(clearTrackNames(_:)), #selector(clearTrackNames(_:)),
#selector(prettifyAudioTrackNames(_:)), #selector(prettifyAudioTrackNames(_:)),
#selector(fixAudioFallbacks(_:)): #selector(fixAudioFallbacks(_:)),
#selector(sendToQueue(_:)):
return true return true
case #selector(sendToExternalApp(_:)) where mp4.hasFileRepresentation && doc.isDocumentEdited == false: case #selector(sendToExternalApp(_:)) where mp4.hasFileRepresentation && doc.isDocumentEdited == false:
@@ -280,12 +283,16 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
} }
} }
func cancel() { func cancelSave() {
mp4.cancel() doc.cancelSave()
} }
// MARK: Actions // MARK: Actions
@IBAction func sendToQueue(_ sender: Any) {
doc.sendToQueue(self)
}
@IBAction func sendToExternalApp(_ sender: Any) { @IBAction func sendToExternalApp(_ sender: Any) {
if let fileURL = doc.fileURL { if let fileURL = doc.fileURL {
_ = sendToFileExternalApp(fileURL: fileURL) _ = sendToFileExternalApp(fileURL: fileURL)
@@ -301,12 +308,12 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
let minutes = sender.tag * 60 * 1000 let minutes = sender.tag * 60 * 1000
if minutes > 0 { if minutes > 0 {
for (index, duration) in stride(from: 0, to: mp4.duration, by: minutes).enumerated() { for (index, timestamp) in stride(from: 0, to: mp4.duration, by: minutes).enumerated() {
track.addChapter("Chapter \(index + 1)", duration: UInt64(duration)) track.addChapter("Chapter \(index + 1)", timestamp: UInt64(timestamp))
} }
} }
else { else {
track.addChapter("Chapter 1", duration: UInt64(mp4.duration)) track.addChapter("Chapter 1", timestamp: 0)
} }
doc.updateChangeCount(.changeDone) doc.updateChangeCount(.changeDone)
@@ -507,6 +514,22 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
} }
} }
@objc func importFilesDirectly(_ fileURLs: [URL]) {
do {
let controller = try FileImportController(fileURLs: fileURLs, delegate: self)
// Call addTracks directly - the Settings initialization logic runs when the controller is created
controller.addTracks(self)
tracksViewController.reloadData()
} catch {
if let windowForSheet = doc.windowForSheet {
presentError(error, modalFor: windowForSheet, delegate: nil, didPresent: nil, contextInfo: nil)
} else {
presentError(error)
}
}
}
func didSelect(tracks: [MP42Track], metadata: MP42Metadata?) { func didSelect(tracks: [MP42Track], metadata: MP42Metadata?) {
for track in tracks { for track in tracks {
mp4.addTrack(track) mp4.addTrack(track)
+122 -4
View File
@@ -115,6 +115,17 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
enabled: true) enabled: true)
actions.append(conversionAction) actions.append(conversionAction)
} }
let audioTrack = track as! MP42AudioTrack
let channelCount = audioTrack.channels
if track.format == kMP42AudioCodecType_MPEG4AAC && channelCount > 2 {
let conversionAction = Action(title: NSLocalizedString("AAC + Passthru", comment: "File Import action menu item."),
tag: 6,
enabled: true)
actions.append(conversionAction)
}
default: default:
break break
} }
@@ -233,6 +244,7 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
} }
private func setCheck(value: Bool, forIndexes indexes: IndexSet) { private func setCheck(value: Bool, forIndexes indexes: IndexSet) {
var modifiedIndexes = IndexSet()
for index in indexes { for index in indexes {
let item = items[index] let item = items[index]
switch item { switch item {
@@ -240,16 +252,18 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
break break
case .track(let settings): case .track(let settings):
settings.checked = value && settings.importable settings.checked = value && settings.importable
modifiedIndexes.insert(index)
} }
} }
reloadCheckColumn(forRowIndexes: indexes) reloadCheckColumn(forRowIndexes: modifiedIndexes)
} }
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool { func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
if let action = item.action, if let action = item.action,
action == #selector(self.checkSelected(_:)) || action == #selector(self.checkSelected(_:)) ||
action == #selector(self.uncheckSelected(_:)) || action == #selector(self.uncheckSelected(_:)) ||
action == #selector(self.checkOnlyTracksWithSameLanguage(_:)) { action == #selector(self.checkOnlyTracksWithSameLanguage(_:)) ||
action == #selector(self.checkOnlySelectedTracks(_:)) {
if tracksTableView.selectedRow != -1 || tracksTableView.clickedRow != -1 { if tracksTableView.selectedRow != -1 || tracksTableView.clickedRow != -1 {
return true return true
} }
@@ -276,8 +290,36 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
} }
} }
settings.forEach { $0.checked = $0.importable && languages.contains($0.track.language) } var modifiedIndexes = IndexSet()
reloadCheckColumn(forRowIndexes: IndexSet(integersIn: items.indices))
items.enumerated().forEach { (index, item) in
switch item {
case .file(_):
break
case .track(let settings):
settings.checked = settings.importable && languages.contains(settings.track.language)
modifiedIndexes.insert(index)
}
}
reloadCheckColumn(forRowIndexes: modifiedIndexes)
}
@IBAction func checkOnlySelectedTracks(_ sender: Any) {
let targetedIndices = tracksTableView.targetedRowIndexes;
var modifiedIndexes = IndexSet()
items.enumerated().forEach { (index, item) in
switch item {
case .file(_):
break
case .track(let settings):
settings.checked = targetedIndices.contains(index)
modifiedIndexes.insert(index)
}
}
reloadCheckColumn(forRowIndexes: modifiedIndexes)
} }
// MARK: IBActions // MARK: IBActions
@@ -287,6 +329,8 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
} }
@IBAction func addTracks(_ sender: Any) { @IBAction func addTracks(_ sender: Any) {
logTracksTable()
var selectedTracks: [MP42Track] = [] var selectedTracks: [MP42Track] = []
for trackSettings in settings where trackSettings.checked { for trackSettings in settings where trackSettings.checked {
@@ -479,4 +523,78 @@ final class FileImportController: ViewController, NSTableViewDataSource, NSTable
return 18 return 18
} }
} }
// MARK: Private methods
private func logTracksTable() {
let logger = Logger.shared
// Helper function to truncate strings
func truncate(_ str: String, to length: Int) -> String {
if str.count <= length {
return str.padding(toLength: length, withPad: " ", startingAt: 0)
}
return String(str.prefix(length - 1)) + "~"
}
// Helper function to format duration
func formatDuration(_ duration: Double, timescale: UInt32) -> String {
if duration <= 0 || timescale == 0 {
return "Unknown"
}
let seconds = duration / Double(timescale)
let hours = Int(seconds) / 3600
let minutes = (Int(seconds) % 3600) / 60
let secs = Int(seconds) % 60
let millisecs = Int((seconds - Double(Int(seconds))) * 1000)
return String(format: "%02d:%02d:%02d.%03d", hours, minutes, secs, millisecs)
}
// Build the entire table as a single string
var tableLines: [String] = []
tableLines.append("File Import: Processing tracks with applied settings:")
tableLines.append("----------------------------------------------------------------------------------------------")
tableLines.append("| | Id | Name | Duration | Language | Info | Action |")
tableLines.append("----------------------------------------------------------------------------------------------")
var trackId = 1
for item in items {
switch item {
case .file(_):
// Skip file headers in table format
break
case .track(let settings):
let track = settings.track
// Get the selected action description
let selectedAction = settings.actions.first { $0.tag == settings.selectedActionTag }
let action = selectedAction?.title ?? "Unknown"
// Format the data with proper truncation and alignment
let name = truncate(track.name.isEmpty ? "Unnamed" : track.name, to: 21)
let language = truncate(MP42Languages.defaultManager.localizedLang(forExtendedTag: track.language), to: 13)
let infoTruncated = truncate(track.formatSummary, to: 10)
let actionTruncated = truncate(action, to: 13)
let duration = formatDuration(Double(track.duration), timescale: track.timescale)
let selected = settings.checked ? "X" : " "
let id = String(format: "%02d", trackId)
// Create properly aligned row with fixed column widths
// The truncate function now handles padding, so we just need to pad duration
let durationPadded = duration.padding(toLength: 12, withPad: " ", startingAt: 0)
let row = "| \(selected) | \(id) | \(name) | \(durationPadded) | \(language) | \(infoTruncated) | \(actionTruncated) |"
tableLines.append(row)
trackId += 1
}
}
tableLines.append("----------------------------------------------------------------------------------------------")
// Log the entire table as a single entry
logger.write(toLog: tableLines.joined(separator: "\n"))
}
} }
+7
View File
@@ -37,4 +37,11 @@ class GeneralPrefsViewController: NSViewController {
@objc dynamic var ratingsCountries: [String] { return Ratings.shared.countries.map { $0.displayName } } @objc dynamic var ratingsCountries: [String] { return Ratings.shared.countries.map { $0.displayName } }
@objc dynamic var logFormatOptions: [String] {
return [
"Time Only",
"Date and Time"
]
}
} }
+51 -3
View File
@@ -10,7 +10,15 @@ import MP42Foundation
final class Logger : NSObject, MP42Logging { final class Logger : NSObject, MP42Logging {
enum Format: Int {
case timeOnly = 0
case dateAndTime = 1
}
static let shared = Logger(fileURL: defaultDestinationURL)
var delegate: MP42Logging? var delegate: MP42Logging?
var format: Format { Format(rawValue: Prefs.logFormat) ?? .timeOnly }
private let fileURL: URL private let fileURL: URL
private let queue: DispatchQueue private let queue: DispatchQueue
@@ -24,7 +32,17 @@ final class Logger : NSObject, MP42Logging {
var currentTime = time(nil) var currentTime = time(nil)
if let localTime = localtime(&currentTime) { if let localTime = localtime(&currentTime) {
let p = localTime.pointee let p = localTime.pointee
return "\(p.tm_hour):\(p.tm_min):\(p.tm_sec)" return String(format: "%02d:%02d:%02d", p.tm_hour, p.tm_min, p.tm_sec)
} else {
return ""
}
}
private func currentDate() -> String {
var currentTime = time(nil)
if let localTime = localtime(&currentTime) {
let p = localTime.pointee
return String(format: "%04d-%02d-%02d", p.tm_year + 1900, p.tm_mon + 1, p.tm_mday)
} else { } else {
return "" return ""
} }
@@ -32,7 +50,14 @@ final class Logger : NSObject, MP42Logging {
func write(toLog string: String) { func write(toLog string: String) {
queue.sync { queue.sync {
let output = "\(currentTime()) \(string)\n" let prefix: String
switch format {
case .timeOnly:
prefix = currentTime()
case .dateAndTime:
prefix = "\(currentDate()) \(currentTime())"
}
let output = "\(prefix) \(string)\n"
fileURL.withUnsafeFileSystemRepresentation { fileURL.withUnsafeFileSystemRepresentation {
if let file = fopen($0, "a") { if let file = fopen($0, "a") {
@@ -40,7 +65,7 @@ final class Logger : NSObject, MP42Logging {
fclose(file) fclose(file)
} }
} }
if let delegate = delegate { if let delegate = delegate {
delegate.write(toLog: output) delegate.write(toLog: output)
} }
@@ -55,5 +80,28 @@ final class Logger : NSObject, MP42Logging {
try? FileManager.default.removeItem(at: fileURL) try? FileManager.default.removeItem(at: fileURL)
} }
private static let defaultDestinationURL: URL = {
appSupportURL().appendingPathComponent("debugLog.txt")
}()
private static func appSupportURL() -> URL {
let fileManager = FileManager.default
if let url = fileManager.urls(for: .applicationSupportDirectory, in: .userDomainMask)
.first?.appendingPathComponent("Subler") {
do {
if fileManager.fileExists(atPath: url.path) == false {
try fileManager.createDirectory(at: url, withIntermediateDirectories: true, attributes: [:])
}
}
catch _ {
fatalError("Couldn't create the app support directory")
}
return url
}
else {
fatalError("Couldn't find the app support directory")
}
}
} }
+1 -1
View File
@@ -130,7 +130,7 @@ public struct AppleTV: MetadataService {
private let detailsURL = "https://uts-api.itunes.apple.com/uts/v2/view/product/" private let detailsURL = "https://uts-api.itunes.apple.com/uts/v2/view/product/"
private let episodesURL = "https://uts-api.itunes.apple.com/uts/v2/view/show/" private let episodesURL = "https://uts-api.itunes.apple.com/uts/v2/view/show/"
private let seasonsURL = "https://uts-api.itunes.apple.com/uts/v2/show/" private let seasonsURL = "https://uts-api.itunes.apple.com/uts/v2/show/"
private let options = "&utsk=0&caller=wta&v=58&pfm=desktop" private let options = "&utsk=0&caller=wta&v=58&pfm=appletv"
private func normalize(_ term: String) -> String { private func normalize(_ term: String) -> String {
return term.replacingOccurrences(of: " (Dubbed)", with: "") return term.replacingOccurrences(of: " (Dubbed)", with: "")
File diff suppressed because it is too large. Load diff
+62 -8
View File
@@ -19,12 +19,36 @@ public enum ArtworkSize : Int, CustomStringConvertible {
return "square" return "square"
case .rectangle: case .rectangle:
return "rectangle" return "rectangle"
case .vertical:
return "vertical"
case .fullscreen:
return "fullscreen"
case .widescreen:
return "widescreen"
case .maxres:
return "maxres"
case .low:
return "low"
case .medium:
return "medium"
case .high:
return "high"
case .`default`:
return "default"
} }
} }
case standard case standard
case square case square
case rectangle case rectangle
case vertical
case fullscreen
case widescreen
case maxres
case low
case medium
case high
case `default`
} }
public enum ArtworkType : Int, CustomStringConvertible { public enum ArtworkType : Int, CustomStringConvertible {
@@ -38,6 +62,8 @@ public enum ArtworkType : Int, CustomStringConvertible {
return "episode" return "episode"
case .backdrop: case .backdrop:
return "backdrop" return "backdrop"
case .person:
return "person"
case .none: case .none:
return NSLocalizedString("None", comment: "Queue metadata search artwork type") return NSLocalizedString("None", comment: "Queue metadata search artwork type")
@@ -57,15 +83,34 @@ public enum ArtworkType : Int, CustomStringConvertible {
case season case season
case episode case episode
case backdrop case backdrop
case none case person = 5
case none = 4
} }
public struct Artwork { public struct Artwork: Equatable, Hashable {
public let url: URL public let url: URL
public let thumbURL: URL public let thumbURL: URL
public let service: String public let service: String
public let type: ArtworkType public let type: ArtworkType
public let size: ArtworkSize public let size: ArtworkSize
public static func == (lhs: Artwork, rhs: Artwork) -> Bool {
return lhs.url == rhs.url
}
public func hash(into hasher: inout Hasher) {
hasher.combine(url)
}
public static func unique(artworks: [Artwork]) -> [Artwork] {
var uniques = [Artwork]()
for artwork in artworks {
if !uniques.contains(artwork) {
uniques.append(artwork)
}
}
return uniques
}
} }
public enum MediaKind: Int { public enum MediaKind: Int {
@@ -114,7 +159,8 @@ private let localizedKeys: [MetadataResult.Key: String] = [
.network : NSLocalizedString("Network", comment: "nil"), .network : NSLocalizedString("Network", comment: "nil"),
.serviceSeriesID : NSLocalizedString("Service ID", comment: "nil"), .serviceSeriesID : NSLocalizedString("Service ID", comment: "nil"),
.serviceEpisodeID : NSLocalizedString("Service ID", comment: "nil") .serviceAdditionalSeriesID : NSLocalizedString("Service Additional ID", comment: "nil"),
.serviceEpisodeID : NSLocalizedString("Service Episode ID", comment: "nil")
] ]
public final class MetadataResult { public final class MetadataResult {
@@ -156,10 +202,10 @@ public final class MetadataResult {
case season = "{Season}" case season = "{Season}"
case network = "{Network}" case network = "{Network}"
// // Services internal IDs
case serviceSeriesID = "ServiceSeriesID" case serviceSeriesID = "{ServiceSeriesID}"
case serviceAdditionalSeriesID = "AdditionalServiceSeriesID" case serviceAdditionalSeriesID = "{AdditionalServiceSeriesID}"
case serviceEpisodeID = "ServiceEpisodeID" case serviceEpisodeID = "{ServiceEpisodeID}"
fileprivate static var movieKeys: [Key] { fileprivate static var movieKeys: [Key] {
return [.name, return [.name,
@@ -178,7 +224,11 @@ public final class MetadataResult {
.copyright, .copyright,
.contentID, .contentID,
.artistID, .artistID,
.iTunesCountry] .iTunesCountry,
.serviceSeriesID,
.serviceAdditionalSeriesID,
.serviceEpisodeID]
} }
fileprivate static var tvShowKeys: [Key] { fileprivate static var tvShowKeys: [Key] {
@@ -211,6 +261,10 @@ public final class MetadataResult {
.artistID, .artistID,
.playlistID, .playlistID,
.iTunesCountry, .iTunesCountry,
.serviceSeriesID,
.serviceAdditionalSeriesID,
.serviceEpisodeID
] ]
} }
+16 -2
View File
@@ -77,7 +77,8 @@ enum Prefs {
_defaultSaveFormat, _organizeAlternateGroups, _inferMediaCharacteristics, _audioMixdown, _defaultSaveFormat, _organizeAlternateGroups, _inferMediaCharacteristics, _audioMixdown,
_audioBitrate, _audioDRC, _audioConvertAC3, _audioKeepAC3, _audioConvertDts, _audioBitrate, _audioDRC, _audioConvertAC3, _audioKeepAC3, _audioConvertDts,
_audioDtsOptions, _subtitleConvertBitmap, _ratingsCountry, _chaptersPreviewPosition, _audioDtsOptions, _subtitleConvertBitmap, _ratingsCountry, _chaptersPreviewPosition,
_chaptersPreviewTrack, _mp464bitOffset, _mp464bitTimes, _mp4SaveAsOptimize, _forceHvc1]) _chaptersPreviewTrack, _mp464bitOffset, _mp464bitTimes, _mp4SaveAsOptimize, _forceHvc1,
_logFormat])
} }
@Stored(key: "NSApplicationCrashOnException", defaultValue: true) @Stored(key: "NSApplicationCrashOnException", defaultValue: true)
@@ -151,6 +152,18 @@ enum Prefs {
@Stored(key: "SBForceHvc1", defaultValue: true) @Stored(key: "SBForceHvc1", defaultValue: true)
static var forceHvc1: Bool static var forceHvc1: Bool
@Stored(key: "SBArtworkSelectorZoomLevel", defaultValue: 50)
static var artworkSelectorZoomLevel: Float
@Stored(key: "SBMovieArtworkSelectorZoomLevel", defaultValue: 50)
static var movieArtworkSelectorZoomLevel: Float
@Stored(key: "SBPresetArtworkSelectorZoomLevel", defaultValue: 0)
static var presetArtworkSelectorZoomLevel: Float
@Stored(key: "SBLogFormat", defaultValue: 0)
static var logFormat: Int // 0 = Time Only, 1 = Date and Time
} }
enum MetadataPrefs { enum MetadataPrefs {
@@ -158,7 +171,8 @@ enum MetadataPrefs {
static func register() { static func register() {
ud.register(defaults: [_setMovieFormat, _setTVShowFormat, ud.register(defaults: [_setMovieFormat, _setTVShowFormat,
_movieImporter, _movieiTunesStoreLanguage, _movieImporter, _movieiTunesStoreLanguage,
_tvShowImporter, _tvShowiTunesStoreLanguage, _tvShowTheTVDBLanguage, _tvShowTheMovieDBLanguage, _tvShowImporter, _tvShowiTunesStoreLanguage,
_tvShowTheTVDBLanguage, _tvShowTheMovieDBLanguage,
_keepEmptyAnnotations, _keepImportedFilesMetadata]) _keepEmptyAnnotations, _keepImportedFilesMetadata])
} }
+1
View File
@@ -104,6 +104,7 @@ class PrefsWindowController: NSWindowController, NSWindowDelegate {
}, completionHandler: { }, completionHandler: {
view.isHidden = false view.isHidden = false
window.title = item.label window.title = item.label
self.window?.makeFirstResponder(view.nextKeyView)
}) })
} }
else { else {
+9
View File
@@ -42,6 +42,15 @@ final class PresetEditorViewController: MovieViewController {
replaceAnnotations.state = preset.replaceAnnotations == false ? .on : .off replaceAnnotations.state = preset.replaceAnnotations == false ? .on : .off
} }
override var zoomLevel: Float {
get {
Prefs.presetArtworkSelectorZoomLevel
}
set (value) {
Prefs.presetArtworkSelectorZoomLevel = value;
}
}
@IBAction func done(_ sender: Any) { @IBAction func done(_ sender: Any) {
presentingViewController?.dismiss(self) presentingViewController?.dismiss(self)
} }
+2 -2
View File
@@ -8,7 +8,7 @@
import Cocoa import Cocoa
protocol ProgressViewControllerDelegate : AnyObject { protocol ProgressViewControllerDelegate : AnyObject {
func cancel() func cancelSave()
} }
final class ProgressViewController: NSViewController { final class ProgressViewController: NSViewController {
@@ -53,7 +53,7 @@ final class ProgressViewController: NSViewController {
} }
@IBAction func cancel(_ sender: Any) { @IBAction func cancel(_ sender: Any) {
delegate?.cancel() delegate?.cancelSave()
cancelButton.isEnabled = false cancelButton.isEnabled = false
} }
} }
+15 -14
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="23504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22690"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="23504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
@@ -20,20 +20,21 @@
<outlet property="tabView" destination="10" id="nrf-df-lqq"/> <outlet property="tabView" destination="10" id="nrf-df-lqq"/>
<outlet property="tagsPopUp" destination="30" id="1v4-T2-oDW"/> <outlet property="tagsPopUp" destination="30" id="1v4-T2-oDW"/>
<outlet property="view" destination="1" id="2"/> <outlet property="view" destination="1" id="2"/>
<outlet property="zoomSlider" destination="235" id="Lbq-eP-7Mp"/>
</connections> </connections>
</customObject> </customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/> <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customView misplaced="YES" id="1"> <customView id="1">
<rect key="frame" x="0.0" y="0.0" width="769" height="256"/> <rect key="frame" x="0.0" y="0.0" width="769" height="256"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews> <subviews>
<tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="10"> <tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="10">
<rect key="frame" x="-11" y="-12" width="791" height="240"/> <rect key="frame" x="-11" y="-12" width="791" height="263"/>
<tabViewItems> <tabViewItems>
<tabViewItem label="Metadata" identifier="1" id="11"> <tabViewItem label="Metadata" identifier="1" id="11">
<view key="view" id="12"> <view key="view" id="12">
<rect key="frame" x="10" y="25" width="771" height="202"/> <rect key="frame" x="10" y="25" width="771" height="156"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<popUpButton toolTip="Add a new metadata item" translatesAutoresizingMaskIntoConstraints="NO" id="30"> <popUpButton toolTip="Add a new metadata item" translatesAutoresizingMaskIntoConstraints="NO" id="30">
@@ -90,13 +91,13 @@
<accessibility description="Sets"/> <accessibility description="Sets"/>
</popUpButton> </popUpButton>
<scrollView autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r4i-wT-qDC"> <scrollView autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r4i-wT-qDC">
<rect key="frame" x="17" y="36" width="737" height="160"/> <rect key="frame" x="17" y="36" width="737" height="114"/>
<clipView key="contentView" id="cQT-bX-0YB"> <clipView key="contentView" id="cQT-bX-0YB">
<rect key="frame" x="1" y="1" width="735" height="158"/> <rect key="frame" x="1" y="1" width="735" height="112"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target"> <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="735" height="135"/> <rect key="frame" x="0.0" y="0.0" width="735" height="89"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="2"/> <size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -325,7 +326,7 @@
</tabViewItem> </tabViewItem>
<tabViewItem label="Artwork" identifier="Item 1" id="15"> <tabViewItem label="Artwork" identifier="Item 1" id="15">
<view key="view" id="16"> <view key="view" id="16">
<rect key="frame" x="10" y="25" width="771" height="248"/> <rect key="frame" x="10" y="25" width="771" height="225"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="223"> <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="223">
@@ -366,13 +367,13 @@
</connections> </connections>
</slider> </slider>
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WUe-C3-hRA"> <scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WUe-C3-hRA">
<rect key="frame" x="17" y="36" width="737" height="206"/> <rect key="frame" x="17" y="36" width="737" height="183"/>
<clipView key="contentView" id="jau-dn-6LI"> <clipView key="contentView" id="jau-dn-6LI">
<rect key="frame" x="1" y="1" width="735" height="204"/> <rect key="frame" x="1" y="1" width="735" height="181"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<collectionView selectable="YES" allowsMultipleSelection="YES" id="HHe-zs-flI" customClass="CollectionView" customModule="Subler" customModuleProvider="target"> <collectionView selectable="YES" allowsMultipleSelection="YES" id="HHe-zs-flI" customClass="CollectionView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="735" height="204"/> <rect key="frame" x="0.0" y="0.0" width="735" height="181"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES"/>
<collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="ofy-8i-tTx"> <collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="ofy-8i-tTx">
<size key="itemSize" width="280" height="224"/> <size key="itemSize" width="280" height="224"/>
@@ -391,7 +392,7 @@
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</scroller> </scroller>
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="bD2-5M-Iiz"> <scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="bD2-5M-Iiz">
<rect key="frame" x="720" y="1" width="16" height="204"/> <rect key="frame" x="720" y="1" width="16" height="181"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</scroller> </scroller>
</scrollView> </scrollView>
+38 -36
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="19529" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="23504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19529"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="23504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
@@ -51,7 +51,7 @@
<customView translatesAutoresizingMaskIntoConstraints="NO" id="Drh-uk-1vk"> <customView translatesAutoresizingMaskIntoConstraints="NO" id="Drh-uk-1vk">
<rect key="frame" x="87" y="62" width="436" height="329"/> <rect key="frame" x="87" y="62" width="436" height="329"/>
<subviews> <subviews>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ifV-jn-Kjv"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ifV-jn-Kjv">
<rect key="frame" x="234" y="229" width="50" height="19"/> <rect key="frame" x="234" y="229" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="Iwt-Cm-ugd"/> <constraint firstAttribute="width" constant="50" id="Iwt-Cm-ugd"/>
@@ -70,7 +70,7 @@
<action selector="setPixelAspect:" target="-2" id="zHv-hb-Eln"/> <action selector="setPixelAspect:" target="-2" id="zHv-hb-Eln"/>
</connections> </connections>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="hz3-IH-Nfw"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="hz3-IH-Nfw">
<rect key="frame" x="18" y="305" width="141" height="14"/> <rect key="frame" x="18" y="305" width="141" height="14"/>
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Normal Size:" id="soD-gL-b4G"> <textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Normal Size:" id="soD-gL-b4G">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -78,7 +78,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="aqN-Ac-8cl"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="aqN-Ac-8cl">
<rect key="frame" x="289" y="305" width="35" height="14"/> <rect key="frame" x="289" y="305" width="35" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="6I1-7O-uon"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="6I1-7O-uon">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -86,7 +86,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wlV-Oh-ui5"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wlV-Oh-ui5">
<rect key="frame" x="234" y="193" width="50" height="19"/> <rect key="frame" x="234" y="193" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="sti-gZ-KkW"/> <constraint firstAttribute="width" constant="50" id="sti-gZ-KkW"/>
@@ -112,7 +112,7 @@
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
</buttonCell> </buttonCell>
</button> </button>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="j7N-eK-BGR"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="j7N-eK-BGR">
<rect key="frame" x="219" y="231" width="10" height="14"/> <rect key="frame" x="219" y="231" width="10" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="GfY-OY-SWL"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="GfY-OY-SWL">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -120,7 +120,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="n9M-HO-S4Z"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="n9M-HO-S4Z">
<rect key="frame" x="234" y="278" width="50" height="19"/> <rect key="frame" x="234" y="278" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="xBH-Oy-fCg"/> <constraint firstAttribute="width" constant="50" id="xBH-Oy-fCg"/>
@@ -139,7 +139,7 @@
<action selector="setSize:" target="-2" id="7p2-ss-WWu"/> <action selector="setSize:" target="-2" id="7p2-ss-WWu"/>
</connections> </connections>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Hh2-MV-toy"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Hh2-MV-toy">
<rect key="frame" x="164" y="305" width="50" height="14"/> <rect key="frame" x="164" y="305" width="50" height="14"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="46" id="PGv-gZ-TCI"/> <constraint firstAttribute="width" constant="46" id="PGv-gZ-TCI"/>
@@ -150,7 +150,7 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="ciI-zB-M6i"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="ciI-zB-M6i">
<rect key="frame" x="289" y="195" width="35" height="14"/> <rect key="frame" x="289" y="195" width="35" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="EQ0-oQ-E9J"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="EQ0-oQ-E9J">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -158,7 +158,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="IBC-4P-DBN"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="IBC-4P-DBN">
<rect key="frame" x="35" y="231" width="124" height="14"/> <rect key="frame" x="35" y="231" width="124" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Aspect Ratio:" id="Q8w-0e-NRr"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Aspect Ratio:" id="Q8w-0e-NRr">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -166,7 +166,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="lQe-jX-iRS"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="lQe-jX-iRS">
<rect key="frame" x="69" y="195" width="90" height="14"/> <rect key="frame" x="69" y="195" width="90" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Offset:" id="ubI-H1-utj"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Offset:" id="ubI-H1-utj">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -174,7 +174,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="YOz-mZ-420"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="YOz-mZ-420">
<rect key="frame" x="234" y="305" width="50" height="14"/> <rect key="frame" x="234" y="305" width="50" height="14"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="46" id="oX0-WH-XwB"/> <constraint firstAttribute="width" constant="46" id="oX0-WH-XwB"/>
@@ -185,7 +185,7 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qFL-0W-Ye6"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qFL-0W-Ye6">
<rect key="frame" x="164" y="193" width="50" height="19"/> <rect key="frame" x="164" y="193" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="KTL-ae-uEZ"/> <constraint firstAttribute="width" constant="50" id="KTL-ae-uEZ"/>
@@ -204,7 +204,7 @@
<action selector="setSize:" target="-2" id="wz0-CC-lEV"/> <action selector="setSize:" target="-2" id="wz0-CC-lEV"/>
</connections> </connections>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="drr-hJ-0St"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="drr-hJ-0St">
<rect key="frame" x="219" y="195" width="10" height="14"/> <rect key="frame" x="219" y="195" width="10" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="7Ug-k7-d7I"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="7Ug-k7-d7I">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -212,7 +212,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="jJB-Ty-mki"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="jJB-Ty-mki">
<rect key="frame" x="219" y="280" width="10" height="14"/> <rect key="frame" x="219" y="280" width="10" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="lgq-Fj-LB5"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="lgq-Fj-LB5">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -220,7 +220,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Q0D-6k-Hgx"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Q0D-6k-Hgx">
<rect key="frame" x="164" y="229" width="50" height="19"/> <rect key="frame" x="164" y="229" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="aRN-pI-KPe"/> <constraint firstAttribute="width" constant="50" id="aRN-pI-KPe"/>
@@ -239,7 +239,7 @@
<action selector="setPixelAspect:" target="-2" id="aTM-Xt-B1U"/> <action selector="setPixelAspect:" target="-2" id="aTM-Xt-B1U"/>
</connections> </connections>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="r90-c5-7PH"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="r90-c5-7PH">
<rect key="frame" x="164" y="278" width="50" height="19"/> <rect key="frame" x="164" y="278" width="50" height="19"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="50" id="03n-DI-SjQ"/> <constraint firstAttribute="width" constant="50" id="03n-DI-SjQ"/>
@@ -280,7 +280,7 @@
<action selector="setTrackAlternateGroup:" target="-2" id="EMY-4A-sdg"/> <action selector="setTrackAlternateGroup:" target="-2" id="EMY-4A-sdg"/>
</connections> </connections>
</popUpButton> </popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="QID-3k-PHK"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="QID-3k-PHK">
<rect key="frame" x="219" y="305" width="10" height="14"/> <rect key="frame" x="219" y="305" width="10" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="ILN-KP-l0z"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="ILN-KP-l0z">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -288,7 +288,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="AEE-SG-UWs"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="AEE-SG-UWs">
<rect key="frame" x="41" y="280" width="118" height="14"/> <rect key="frame" x="41" y="280" width="118" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Scaled Size:" id="1O9-J3-Plk"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Scaled Size:" id="1O9-J3-Plk">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -296,7 +296,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="BeZ-s7-H0q"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="BeZ-s7-H0q">
<rect key="frame" x="289" y="280" width="35" height="14"/> <rect key="frame" x="289" y="280" width="35" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="7as-HC-onR"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="7as-HC-onR">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -304,7 +304,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="HtH-F7-8Bv"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="HtH-F7-8Bv">
<rect key="frame" x="18" y="170" width="141" height="14"/> <rect key="frame" x="18" y="170" width="141" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Alternate Group:" id="Fye-Hi-zqu"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Alternate Group:" id="Fye-Hi-zqu">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -315,7 +315,7 @@
<customView translatesAutoresizingMaskIntoConstraints="NO" id="z7f-vJ-7sb" userLabel="Forced"> <customView translatesAutoresizingMaskIntoConstraints="NO" id="z7f-vJ-7sb" userLabel="Forced">
<rect key="frame" x="0.0" y="116" width="436" height="46"/> <rect key="frame" x="0.0" y="116" width="436" height="46"/>
<subviews> <subviews>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="cbR-yR-H9l"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="cbR-yR-H9l">
<rect key="frame" x="18" y="29" width="141" height="14"/> <rect key="frame" x="18" y="29" width="141" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Forced:" id="gMo-yz-dz5"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Forced:" id="gMo-yz-dz5">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -325,9 +325,6 @@
</textField> </textField>
<popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="ERY-K2-cCj"> <popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="ERY-K2-cCj">
<rect key="frame" x="160" y="24" width="198" height="22"/> <rect key="frame" x="160" y="24" width="198" height="22"/>
<constraints>
<constraint firstAttribute="width" constant="190" id="tR3-Ay-aDb"/>
</constraints>
<popUpButtonCell key="cell" type="push" title="No" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="KOg-FR-dr6" id="Tx6-IV-D1K"> <popUpButtonCell key="cell" type="push" title="No" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="KOg-FR-dr6" id="Tx6-IV-D1K">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -339,6 +336,9 @@
</items> </items>
</menu> </menu>
</popUpButtonCell> </popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="190" id="tR3-Ay-aDb"/>
</constraints>
<connections> <connections>
<accessibilityConnection property="title" destination="cbR-yR-H9l" id="GZC-Cu-awU"/> <accessibilityConnection property="title" destination="cbR-yR-H9l" id="GZC-Cu-awU"/>
<action selector="setForcedSubtitles:" target="-2" id="n1Z-pH-esH"/> <action selector="setForcedSubtitles:" target="-2" id="n1Z-pH-esH"/>
@@ -360,7 +360,7 @@
<action selector="setForcedTrack:" target="-2" id="kGE-XO-FuP"/> <action selector="setForcedTrack:" target="-2" id="kGE-XO-FuP"/>
</connections> </connections>
</popUpButton> </popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="fwe-5g-QAo"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="fwe-5g-QAo">
<rect key="frame" x="85" y="7" width="74" height="14"/> <rect key="frame" x="85" y="7" width="74" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Forced track:" id="NPR-jz-Ile"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Forced track:" id="NPR-jz-Ile">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -386,7 +386,7 @@
<customView translatesAutoresizingMaskIntoConstraints="NO" id="fPE-Ll-kGD" userLabel="Color"> <customView translatesAutoresizingMaskIntoConstraints="NO" id="fPE-Ll-kGD" userLabel="Color">
<rect key="frame" x="0.0" y="92" width="436" height="24"/> <rect key="frame" x="0.0" y="92" width="436" height="24"/>
<subviews> <subviews>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="xfb-DL-1Pr"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="xfb-DL-1Pr">
<rect key="frame" x="18" y="7" width="141" height="13"/> <rect key="frame" x="18" y="7" width="141" height="13"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Color Space:" id="BZv-h3-OMk"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Color Space:" id="BZv-h3-OMk">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -396,9 +396,6 @@
</textField> </textField>
<popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="RpH-28-y5s"> <popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="RpH-28-y5s">
<rect key="frame" x="160" y="2" width="198" height="22"/> <rect key="frame" x="160" y="2" width="198" height="22"/>
<constraints>
<constraint firstAttribute="width" constant="190" id="8ks-py-KoB"/>
</constraints>
<popUpButtonCell key="cell" type="push" title="Implicit" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="6PY-Np-Y3s" id="G6U-LQ-v4b"> <popUpButtonCell key="cell" type="push" title="Implicit" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="6PY-Np-Y3s" id="G6U-LQ-v4b">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -414,9 +411,14 @@
<menuItem title="P3-DCI (11-17-6)" tag="8" id="z4V-UV-xor"/> <menuItem title="P3-DCI (11-17-6)" tag="8" id="z4V-UV-xor"/>
<menuItem title="P3-D65 (12-17-6)" tag="9" id="fNy-M4-iaz"/> <menuItem title="P3-D65 (12-17-6)" tag="9" id="fNy-M4-iaz"/>
<menuItem title="sRGB (1-13-1)" tag="10" id="l0E-aL-LGd"/> <menuItem title="sRGB (1-13-1)" tag="10" id="l0E-aL-LGd"/>
<menuItem title="IPT-C2 (9-16-15)" tag="11" id="J66-Ah-thQ"/>
<menuItem title="Undefined (2-2-2)" tag="12" id="Pxl-vS-IAs"/>
</items> </items>
</menu> </menu>
</popUpButtonCell> </popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="190" id="8ks-py-KoB"/>
</constraints>
<connections> <connections>
<accessibilityConnection property="title" destination="xfb-DL-1Pr" id="OIM-4J-sWM"/> <accessibilityConnection property="title" destination="xfb-DL-1Pr" id="OIM-4J-sWM"/>
<action selector="setColorProfile:" target="-2" id="xtd-k4-x1K"/> <action selector="setColorProfile:" target="-2" id="xtd-k4-x1K"/>
@@ -435,7 +437,7 @@
<customView translatesAutoresizingMaskIntoConstraints="NO" id="7i2-3m-yRg" userLabel="H.264 Profile"> <customView translatesAutoresizingMaskIntoConstraints="NO" id="7i2-3m-yRg" userLabel="H.264 Profile">
<rect key="frame" x="0.0" y="0.0" width="436" height="91"/> <rect key="frame" x="0.0" y="0.0" width="436" height="91"/>
<subviews> <subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="oWm-9L-JdB"> <textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="oWm-9L-JdB">
<rect key="frame" x="162" y="6" width="256" height="60"/> <rect key="frame" x="162" y="6" width="256" height="60"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="60" id="ftG-DD-6CD"/> <constraint firstAttribute="height" constant="60" id="ftG-DD-6CD"/>
@@ -449,9 +451,6 @@
</textField> </textField>
<popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="b24-td-FnZ"> <popUpButton verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="b24-td-FnZ">
<rect key="frame" x="160" y="69" width="259" height="22"/> <rect key="frame" x="160" y="69" width="259" height="22"/>
<constraints>
<constraint firstAttribute="width" constant="251" id="ALj-JO-YYW"/>
</constraints>
<popUpButtonCell key="cell" type="push" title="Current profile: unknown" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="NIA-f8-VWx" id="Ehv-0f-dPW"> <popUpButtonCell key="cell" type="push" title="Current profile: unknown" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="NIA-f8-VWx" id="Ehv-0f-dPW">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -470,12 +469,15 @@
</items> </items>
</menu> </menu>
</popUpButtonCell> </popUpButtonCell>
<constraints>
<constraint firstAttribute="width" constant="251" id="ALj-JO-YYW"/>
</constraints>
<connections> <connections>
<accessibilityConnection property="title" destination="jin-Xn-WJl" id="xvo-aC-czO"/> <accessibilityConnection property="title" destination="jin-Xn-WJl" id="xvo-aC-czO"/>
<action selector="setProfileLevel:" target="-2" id="fhj-D3-61K"/> <action selector="setProfileLevel:" target="-2" id="fhj-D3-61K"/>
</connections> </connections>
</popUpButton> </popUpButton>
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="jin-Xn-WJl"> <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="jin-Xn-WJl">
<rect key="frame" x="18" y="74" width="141" height="14"/> <rect key="frame" x="18" y="74" width="141" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="H.264 Video Profile/Level:" id="nrd-22-FZl"> <textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="H.264 Video Profile/Level:" id="nrd-22-FZl">
<font key="font" metaFont="controlContent" size="11"/> <font key="font" metaFont="controlContent" size="11"/>
@@ -119,7 +119,7 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable
} }
@IBAction func addChapter(_ sender: Any) { @IBAction func addChapter(_ sender: Any) {
track.addChapter("Chapter", duration: 0) track.addChapter("Chapter", timestamp: 0)
tableView.reloadData() tableView.reloadData()
updateChangeCount() updateChangeCount()
+26 -6
View File
@@ -62,6 +62,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
private let standardSize = NSSize(width: 280, height: 224) private let standardSize = NSSize(width: 280, height: 224)
@IBOutlet var removeArtworkButton: NSButton! @IBOutlet var removeArtworkButton: NSButton!
@IBOutlet var zoomSlider: NSSlider!
@IBOutlet var artworksView: CollectionView! @IBOutlet var artworksView: CollectionView!
override var nibName: NSNib.Name? { override var nibName: NSNib.Name? {
@@ -135,6 +136,12 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
reloadData() reloadData()
} }
override func viewWillAppear() {
let zoomValue = zoomLevel
setZoomValue(zoomValue)
zoomSlider.floatValue = zoomValue
}
private func reloadData() { private func reloadData() {
rowHeights.removeAll(keepingCapacity: true) rowHeights.removeAll(keepingCapacity: true)
updateMetadataArray() updateMetadataArray()
@@ -1255,24 +1262,37 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
} }
} }
@IBAction func zoomSliderDidChange(_ sender: NSControl) { var zoomLevel: Float {
let floatValue = CGFloat(sender.floatValue) get {
Prefs.movieArtworkSelectorZoomLevel
}
set (value) {
Prefs.movieArtworkSelectorZoomLevel = value;
}
}
private func setZoomValue(_ newZoomValue: Float) {
if let layout = artworksView.collectionViewLayout as? NSCollectionViewFlowLayout { if let layout = artworksView.collectionViewLayout as? NSCollectionViewFlowLayout {
if floatValue == 50 { if newZoomValue == 50 {
layout.itemSize = standardSize layout.itemSize = standardSize
} else if floatValue < 50 { } else if newZoomValue < 50 {
let zoomValue = (floatValue + 50) / 100 let zoomValue = (CGFloat(newZoomValue) + 50) / 100
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue), layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
height: Int(standardSize.height * zoomValue)) height: Int(standardSize.height * zoomValue))
} else { } else {
let zoomValue = pow((floatValue + 50) / 100, 2.4) let zoomValue = pow((CGFloat(newZoomValue) + 50) / 100, 2.4)
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue), layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
height: Int(standardSize.height * zoomValue)) height: Int(standardSize.height * zoomValue))
} }
} }
} }
@IBAction func zoomSliderDidChange(_ sender: NSControl) {
setZoomValue(sender.floatValue)
zoomLevel = sender.floatValue
}
func collectionViewDelete(in collectionView: NSCollectionView) { func collectionViewDelete(in collectionView: NSCollectionView) {
removeArtwork(self) removeArtwork(self)
} }
@@ -143,6 +143,10 @@ final class VideoViewController: PropertyView {
return NSLocalizedString("P3-D65 (12-17-6)", comment: "color profile") return NSLocalizedString("P3-D65 (12-17-6)", comment: "color profile")
case (1, 13, 1): case (1, 13, 1):
return NSLocalizedString("sRGB (1-13-1)", comment: "color profile") return NSLocalizedString("sRGB (1-13-1)", comment: "color profile")
case (9, 16, 15):
return NSLocalizedString("IPT-C2 (9-16-15)", comment: "color profile")
case (2, 2, 2):
return NSLocalizedString("Undefined (2-2-2)", comment: "color profile")
default: default:
return "\(colorTag.0)-\(colorTag.1)-\(colorTag.2)" return "\(colorTag.0)-\(colorTag.1)-\(colorTag.2)"
} }
@@ -192,7 +196,7 @@ final class VideoViewController: PropertyView {
if track.format == kMP42VideoCodecType_H264 || track.format == kMP42VideoCodecType_MPEG4Video || if track.format == kMP42VideoCodecType_H264 || track.format == kMP42VideoCodecType_MPEG4Video ||
track.format == kMP42VideoCodecType_HEVC || track.format == kMP42VideoCodecType_HEVC_PSinBitstream || track.format == kMP42VideoCodecType_HEVC || track.format == kMP42VideoCodecType_HEVC_PSinBitstream ||
track.format == kMP42VideoCodecType_VVC || track.format == kMP42VideoCodecType_VVC_PSinBitstream || track.format == kMP42VideoCodecType_VVC || track.format == kMP42VideoCodecType_VVC_PSinBitstream ||
track.format == kMP42VideoCodecType_AV1 { track.format == kMP42VideoCodecType_AV1 || track.format == kMP42VideoCodecType_DolbyVisionHEVC {
colorView.isHidden = false colorView.isHidden = false
colorHeight.constant = 24 colorHeight.constant = 24
@@ -330,6 +334,10 @@ final class VideoViewController: PropertyView {
colorTag = (12, 17, 6) colorTag = (12, 17, 6)
case 10: case 10:
colorTag = (1, 13, 1) colorTag = (1, 13, 1)
case 11:
colorTag = (9, 16, 15)
case 12:
colorTag = (2, 2, 2)
default: default:
return return
} }
+5
View File
@@ -28,6 +28,8 @@ final class Queue {
private let url: URL private let url: URL
private let logger = Logger.shared
enum Status { enum Status {
case unknown case unknown
case working case working
@@ -157,9 +159,12 @@ final class Queue {
let result = self.process(currentItem) let result = self.process(currentItem)
if .completed == result { if .completed == result {
completed += 1 completed += 1
self.logger.write(toLog: currentItem.fileURL.lastPathComponent + " completed")
} else if .failed == result { } else if .failed == result {
failed += 1 failed += 1
self.logger.write(toLog: currentItem.fileURL.lastPathComponent + " failed")
} else if .cancelled == result { } else if .cancelled == result {
self.logger.write(toLog: currentItem.fileURL.lastPathComponent + " cancelled")
break break
} }
} else { } else {
+2
View File
@@ -61,6 +61,8 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
window?.toolbarStyle = .unified window?.toolbarStyle = .unified
} }
toolbarDelegate.target = self
let toolbar = NSToolbar(identifier: "SublerQueueToolbar") let toolbar = NSToolbar(identifier: "SublerQueueToolbar")
toolbar.delegate = toolbarDelegate toolbar.delegate = toolbarDelegate
toolbar.allowsUserCustomization = true toolbar.allowsUserCustomization = true
+24
View File
@@ -45,3 +45,27 @@ import Foundation
} }
} }
@objc(SBQueueRemoveCompletedScriptCommand) class QueueRemoveCompletedScriptCommand: NSScriptCommand {
@MainActor override func performDefaultImplementation() -> Any? {
QueueController.shared.removeCompletedItems(self)
return nil
}
}
@objc(SBQueueStatusScriptCommand) class SBQueueStatusScriptCommand: NSScriptCommand {
@MainActor override func performDefaultImplementation() -> Any? {
switch QueueController.shared.status {
case .unknown:
return 0 // idle
case .working:
return 1 // running
case .completed:
return 2 // completed
}
}
}
+5
View File
@@ -15,6 +15,8 @@ extension NSToolbarItem.Identifier {
class QueueToolbarDelegate: NSObject, NSToolbarDelegate { class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
weak var target: AnyObject?
@MainActor func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? { @MainActor func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? {
if itemIdentifier == .queueAdd { if itemIdentifier == .queueAdd {
@@ -23,6 +25,7 @@ class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Add an item to the queue", comment: "Toolbar"), toolTip: NSLocalizedString("Add an item to the queue", comment: "Toolbar"),
image: "NSAddTemplate", image: "NSAddTemplate",
symbolName: "plus", symbolName: "plus",
target: target,
action: #selector(QueueController.open(_:))) action: #selector(QueueController.open(_:)))
} else if itemIdentifier == .queueSettings { } else if itemIdentifier == .queueSettings {
return ButtonToolbarItem(itemIdentifier: itemIdentifier, return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -30,6 +33,7 @@ class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Show/Hide settings", comment: "Toolbar"), toolTip: NSLocalizedString("Show/Hide settings", comment: "Toolbar"),
image: "NSActionTemplate", image: "NSActionTemplate",
symbolName: "ellipsis.circle", symbolName: "ellipsis.circle",
target: target,
action: #selector(QueueController.toggleOptions(_:))) action: #selector(QueueController.toggleOptions(_:)))
} else if itemIdentifier == .queueStartStop { } else if itemIdentifier == .queueStartStop {
return ButtonToolbarItem(itemIdentifier: itemIdentifier, return ButtonToolbarItem(itemIdentifier: itemIdentifier,
@@ -37,6 +41,7 @@ class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
toolTip: NSLocalizedString("Start/Stop queue", comment: "Toolbar"), toolTip: NSLocalizedString("Start/Stop queue", comment: "Toolbar"),
image: "playBackTemplate", image: "playBackTemplate",
symbolName: "play.fill", symbolName: "play.fill",
target: target,
action: #selector(QueueController.toggleStartStop(_:))) action: #selector(QueueController.toggleStartStop(_:)))
} }
+19 -5
View File
@@ -7,6 +7,7 @@
import Cocoa import Cocoa
import MP42Foundation import MP42Foundation
import UniformTypeIdentifiers
final class SaveOptions: NSViewController { final class SaveOptions: NSViewController {
@@ -46,13 +47,22 @@ final class SaveOptions: NSViewController {
fileFormat.addItem(withTitle: name) fileFormat.addItem(withTitle: name)
} }
fileFormat.selectItem(at: Prefs.defaultSaveFormat) let idx = Prefs.defaultSaveFormat > -1 && Prefs.defaultSaveFormat < formats.count ? Prefs.defaultSaveFormat : 1
savePanel?.allowedFileTypes = [Prefs.saveFormat] let format = formats[idx]
fileFormat.selectItem(at: idx)
if let filename = doc.mp4.preferredFileName() { if let filename = doc.mp4.preferredFileName() {
savePanel?.nameFieldStringValue = filename savePanel?.nameFieldStringValue = filename
} }
if #available(macOS 15.0, *) {
let type = UTType(format) ?? .mpeg4Movie
savePanel?.currentContentType = type
} else {
savePanel?.allowedFileTypes = [Prefs.saveFormat]
}
_64bit_data.state = Prefs.mp464bitOffset ? .on : .off _64bit_data.state = Prefs.mp464bitOffset ? .on : .off
_64bit_time.state = Prefs.mp464bitTimes ? .on : .off _64bit_time.state = Prefs.mp464bitTimes ? .on : .off
optimize.state = Prefs.mp4SaveAsOptimize ? .on : .off optimize.state = Prefs.mp4SaveAsOptimize ? .on : .off
@@ -62,8 +72,7 @@ final class SaveOptions: NSViewController {
} }
} }
func saveUserDefaults() func saveUserDefaults() {
{
Prefs.defaultSaveFormat = fileFormat.indexOfSelectedItem Prefs.defaultSaveFormat = fileFormat.indexOfSelectedItem
Prefs.mp464bitOffset = _64bit_data.state == .on Prefs.mp464bitOffset = _64bit_data.state == .on
Prefs.mp464bitTimes = _64bit_time.state == .on Prefs.mp464bitTimes = _64bit_time.state == .on
@@ -91,7 +100,12 @@ final class SaveOptions: NSViewController {
default: default:
break break
} }
savePanel?.allowedFileTypes = [requiredFileType] if #available(macOS 15.0, *) {
let type = UTType(filenameExtension: requiredFileType) ?? .mpeg4Movie
savePanel?.currentContentType = type
} else {
savePanel?.allowedFileTypes = [requiredFileType]
}
Prefs.saveFormat = requiredFileType Prefs.saveFormat = requiredFileType
} }
} }
+875
View File
@@ -0,0 +1,875 @@
//
// ScriptCommand.swift
// Subler
//
// Created by Michael Mock on 6/9/25.
//
import Foundation
import AppKit
import MP42Foundation
// Protocol for universal document targeting
protocol ScriptCommandDocumentTargeting {}
extension ScriptCommandDocumentTargeting where Self: NSScriptCommand {
func targetedDocument() -> Document? {
// First, check for explicit document parameters ('into' or 'doc')
if let evaluatedArgs = self.evaluatedArguments {
if let doc = evaluatedArgs["into"] as? Document {
return doc
}
if let doc = evaluatedArgs["doc"] as? Document {
return doc
}
}
// Then, try to get document from direct parameter
if let directParameter = self.directParameter as? Document {
return directParameter
}
// Then, try to get document from receiver specifier (window targeting)
if let receiver = self.receiversSpecifier?.objectsByEvaluatingSpecifier as? Document {
return receiver
}
// If receiver is a window, get its document
if let window = self.receiversSpecifier?.objectsByEvaluatingSpecifier as? NSWindow,
let windowController = window.windowController as? DocumentWindowController {
return windowController.document as? Document
}
// Finally, fall back to current document (frontmost)
return NSDocumentController.shared.currentDocument as? Document
}
func extractFilePath() -> String? {
// Try different ways AppleScript might pass a file path
if let param = self.directParameter as? String {
return param
} else if let fileURL = self.directParameter as? URL {
return fileURL.path
} else if let fileDescriptor = self.directParameter as? [String: Any],
let path = fileDescriptor["path"] as? String {
return path
} else if let specifier = self.directParameter as? NSScriptObjectSpecifier {
// Handle AppleScript file references like POSIX file
return specifier.key
}
return nil
}
}
@objc(SBImportFileScriptCommand)
class SBImportFileScriptCommand: NSScriptCommand, ScriptCommandDocumentTargeting {
override func performDefaultImplementation() -> Any? {
let logger = Logger.shared
// Get file path using the helper method
guard let path = extractFilePath() else {
logger.write(toLog: "Script failed to get file parameter - expected file reference or path string")
return nil
}
// Get target document using universal method
guard let doc = targetedDocument() else {
logger.write(toLog: "No document available for import")
return nil
}
// Perform import into the target document
let fileURL = URL(fileURLWithPath: path)
// Import directly into the target document
if let windowController = doc.windowControllers.first {
let selector = NSSelectorFromString("importFilesDirectly:")
if windowController.responds(to: selector) {
let fileURLs = [fileURL]
_ = windowController.perform(selector, with: fileURLs)
logger.write(toLog: "Script successfully imported file into target document")
} else {
logger.write(toLog: "importFilesDirectly method not found on target document")
}
} else {
logger.write(toLog: "No window controller found for target document")
}
return path
}
}
@objc(SBFetchMetadataScriptCommand)
class SBFetchMetadataScriptCommand: NSScriptCommand, ScriptCommandDocumentTargeting {
override func performDefaultImplementation() -> Any? {
let logger = Logger.shared
guard let sublerDoc = targetedDocument() else {
logger.write(toLog: "No document available for fetching metadata")
return nil
}
// Access the MP42File through the custom Document subclass
let mp4File = sublerDoc.mp4
let searchTerms = mp4File.extractSearchTerms(fallbackURL: sublerDoc.fileURL)
// Perform headless metadata search with completion handling
searchMetadata(terms: searchTerms) { metadata in
DispatchQueue.main.async {
if let metadata = metadata {
// Apply the metadata to the file
mp4File.metadata.merge(metadata)
sublerDoc.updateChangeCount(.changeDone)
// Trigger UI refresh by calling reloadData on the window controller
if let windowController = sublerDoc.windowControllers.first as? DocumentWindowController {
windowController.reloadData()
}
// Log the metadata that was applied
let metadataCount = mp4File.metadata.items.count
logger.write(toLog: "Script successfully applied \(metadataCount) metadata items")
} else {
logger.write(toLog: "No metadata found")
}
}
}
return nil
}
private func searchMetadata(terms: MetadataSearchTerms, completion: @escaping (MP42Metadata?) -> Void) {
var metadata: MetadataResult? = nil
// Use default services and settings
let movieService = MetadataSearch.defaultMovieService
let tvShowService = MetadataSearch.defaultTVService
// Get user preferences for artwork from Queue preferences
let queuePrefs = QueuePreferences()
let preferredArtwork = ArtworkType(rawValue: queuePrefs.providerArtwork) ?? .poster
let preferredArtworkSize = ArtworkSize(rawValue: queuePrefs.providerArtworkSize) ?? .standard
switch terms {
case let .movie(title):
let movieSearch = MetadataSearch.movieSeach(service: movieService, movie: title, language: MetadataSearch.defaultLanguage(service: movieService, type: .movie))
_ = movieSearch.search(completionHandler: { results in
if let result = results.first {
_ = movieSearch.loadAdditionalMetadata(result, completionHandler: { additionalMetadata in
metadata = additionalMetadata
// Handle artwork similar to QueueMetadataAction
if let metadataResult = metadata {
let artworks = metadataResult.remoteArtworks
if preferredArtwork != .none && artworks.isEmpty == false {
let artwork: Artwork? = {
let type = preferredArtwork.isMovieType ? preferredArtwork : .poster
if let artwork = artworks.filter(by: type, size: preferredArtworkSize, service: movieService.name) {
return artwork
} else if let artwork = artworks.filter(by: .poster, size: .standard, service: movieService.name) {
return artwork
} else {
return artworks.first
}
}()
// Load and add artwork to metadata result BEFORE mapping
if let url = artwork?.url, let artworkData = URLSession.data(from: url) {
let mp42Image = MP42Image(data: artworkData, type: MP42_ART_JPEG)
metadataResult.artworks.append(mp42Image)
}
}
// Map the metadata using the same logic as QueueAction (now includes artwork)
let map = metadataResult.mediaKind == .movie ? MetadataPrefs.movieResultMap : MetadataPrefs.tvShowResultMap
let mappedMetadata = metadataResult.mappedMetadata(to: map, keepEmptyKeys: false)
completion(mappedMetadata)
} else {
completion(nil)
}
}).run()
} else {
completion(nil)
}
}).run()
case let .tvShow(seriesName, season, episode):
let tvSearch = MetadataSearch.tvSearch(service: tvShowService, tvShow: seriesName, season: season, episode: episode, language: MetadataSearch.defaultLanguage(service: tvShowService, type: .tvShow))
_ = tvSearch.search(completionHandler: { results in
if let result = results.first {
_ = tvSearch.loadAdditionalMetadata(result, completionHandler: { additionalMetadata in
metadata = additionalMetadata
// Handle artwork similar to QueueMetadataAction
if let metadataResult = metadata {
let artworks = metadataResult.remoteArtworks
if preferredArtwork != .none && artworks.isEmpty == false {
let artwork: Artwork? = {
if let artwork = artworks.filter(by: preferredArtwork, size: preferredArtworkSize, service: tvShowService.name) {
return artwork
} else if let artwork = artworks.filter(by: .season, size: preferredArtworkSize, service: tvShowService.name) {
return artwork
} else if let artwork = artworks.filter(by: .poster, size: .standard, service: tvShowService.name) {
return artwork
} else {
return artworks.first
}
}()
// Load and add artwork to metadata result BEFORE mapping
if let url = artwork?.url, let artworkData = URLSession.data(from: url) {
let mp42Image = MP42Image(data: artworkData, type: MP42_ART_JPEG)
metadataResult.artworks.append(mp42Image)
}
}
// Map the metadata using the same logic as QueueAction (now includes artwork)
let map = metadataResult.mediaKind == .movie ? MetadataPrefs.movieResultMap : MetadataPrefs.tvShowResultMap
let mappedMetadata = metadataResult.mappedMetadata(to: map, keepEmptyKeys: false)
completion(mappedMetadata)
} else {
completion(nil)
}
}).run()
} else {
completion(nil)
}
}).run()
case .none:
completion(nil)
}
}
}
@objc(SBOrganizeAlternateGroupsScriptCommand)
class SBOrganizeAlternateGroupsScriptCommand: NSScriptCommand, ScriptCommandDocumentTargeting {
override func performDefaultImplementation() -> Any? {
let logger = Logger.shared
guard let sublerDoc = targetedDocument() else {
logger.write(toLog: "No document available for organizing alternate groups")
return nil
}
// Use the existing IBAction instead of duplicating logic
if let windowController = sublerDoc.windowControllers.first as? DocumentWindowController {
windowController.iTunesFriendlyTrackGroups(self)
logger.write(toLog: "Script successfully organized alternate groups")
} else {
logger.write(toLog: "No window controller found for organizing alternate groups")
}
return nil
}
}
@objc(SBClearTrackNamesScriptCommand)
class SBClearTrackNamesScriptCommand: NSScriptCommand, ScriptCommandDocumentTargeting {
override func performDefaultImplementation() -> Any? {
let logger = Logger.shared
guard let sublerDoc = targetedDocument() else {
logger.write(toLog: "No document available for clearing track names")
return nil
}
// Use the existing IBAction instead of duplicating logic
if let windowController = sublerDoc.windowControllers.first as? DocumentWindowController {
windowController.clearTrackNames(self)
logger.write(toLog: "Script successfully cleared all track names")
} else {
logger.write(toLog: "No window controller found for clearing track names")
}
return nil
}
}
@objc(SBPrettifyAudioTrackNamesScriptCommand)
class SBPrettifyAudioTrackNamesScriptCommand: NSScriptCommand, ScriptCommandDocumentTargeting {
override func performDefaultImplementation() -> Any? {
let logger = Logger.shared
guard let sublerDoc = targetedDocument() else {
logger.write(toLog: "No document available for prettifying audio track names")
return nil
}
// Use the existing IBAction instead of duplicating logic
if let windowController = sublerDoc.windowControllers.first as? DocumentWindowController {
windowController.prettifyAudioTrackNames(self)
logger.write(toLog: "Script successfully prettified audio track names")
} else {
logger.write(toLog: "No window controller found for prettifying audio track names")
}
return nil
}
}
@objc(SBFixAudioFallbacksScriptCommand)
class SBFixAudioFallbacksScriptCommand: NSScriptCommand, ScriptCommandDocumentTargeting {
override func performDefaultImplementation() -> Any? {
let logger = Logger.shared
guard let sublerDoc = targetedDocument() else {
logger.write(toLog: "No document available for fixing audio fallbacks")
return nil
}
// Use the existing IBAction instead of duplicating logic
if let windowController = sublerDoc.windowControllers.first as? DocumentWindowController {
windowController.fixAudioFallbacks(self)
logger.write(toLog: "Script successfully fixed audio fallbacks")
} else {
logger.write(toLog: "No window controller found for fixing audio fallbacks")
}
return nil
}
}
@objc(SBSaveAsScriptCommand)
class SBSaveAsScriptCommand: NSScriptCommand, ScriptCommandDocumentTargeting {
override func performDefaultImplementation() -> Any? {
let logger = Logger.shared
// Get the target document (frontmost or specified)
guard let sublerDoc = targetedDocument() else {
logger.write(toLog: "No document available for save as operation")
return nil
}
// Use the helper method to extract the destination path
guard let path = extractFilePath() else {
return nil
}
let destinationURL = URL(fileURLWithPath: path)
let fileName = destinationURL.lastPathComponent
// Build options dictionary with 64-bit settings from UI preferences
var options: [String: Any] = [:]
options[MP4264BitData] = Prefs.mp464bitOffset
options[MP4264BitTime] = Prefs.mp464bitTimes
// Get the window controller for progress reporting
guard let windowController = sublerDoc.windowControllers.first as? DocumentWindowController else {
logger.write(toLog: "No window controller found for progress reporting")
return nil
}
// Start progress reporting to show the save modal
windowController.startProgressReporting()
windowController.setProgress(title: NSLocalizedString("Saving…", comment: "Document Save sheet."))
// Perform the save operation asynchronously to keep UI responsive
DispatchQueue.global(qos: .userInitiated).async {
do {
try sublerDoc.mp4.write(to: destinationURL, options: options)
DispatchQueue.main.async {
// Optimize if requested in UI save dialog preferences
if Prefs.mp4SaveAsOptimize {
windowController.setProgress(title: NSLocalizedString("Optimizing…", comment: "Document Optimize sheet."))
// Run optimization on background queue
DispatchQueue.global(qos: .userInitiated).async {
_ = sublerDoc.mp4.optimize()
DispatchQueue.main.async {
// Update the document's file URL and mark as saved
sublerDoc.fileURL = destinationURL
sublerDoc.updateChangeCount(.changeCleared)
// End progress reporting and refresh the UI
windowController.endProgressReporting()
windowController.reloadData()
}
}
} else {
// Update the document's file URL and mark as saved
sublerDoc.fileURL = destinationURL
sublerDoc.updateChangeCount(.changeCleared)
// End progress reporting and refresh the UI
windowController.endProgressReporting()
windowController.reloadData()
}
}
logger.write(toLog: "Script save of \(fileName) completed")
} catch {
DispatchQueue.main.async {
// End progress reporting on error
windowController.endProgressReporting()
logger.write(toLog: "Failed to save document: \(error.localizedDescription)")
}
}
}
return path
}
}
@objc(SBSendToQueueScriptCommand)
class SBSendToQueueScriptCommand: NSScriptCommand, ScriptCommandDocumentTargeting {
override func performDefaultImplementation() -> Any? {
let logger = Logger.shared
// Get the target document (frontmost or specified)
guard let sublerDoc = targetedDocument() else {
logger.write(toLog: "No document available for send to queue operation")
return nil
}
// Use the helper method to extract the destination path
guard let path = extractFilePath() else {
return nil
}
let destinationURL = URL(fileURLWithPath: path)
let fileName = destinationURL.lastPathComponent
// Build options dictionary with 64-bit settings from UI preferences
var options: [String: Any] = [:]
options[MP4264BitData] = Prefs.mp464bitOffset
options[MP4264BitTime] = Prefs.mp464bitTimes
// Create queue item and add to queue
let item = QueueItem(mp4: sublerDoc.mp4, destURL: destinationURL, attributes: options, optimize: Prefs.mp4SaveAsOptimize)
// Add the queue item
QueueController.shared.add(item)
logger.write(toLog: "Script successfully sent document to queue: \(fileName)")
// Close the document window since it's now in the queue
DispatchQueue.main.async {
sublerDoc.close()
}
return path
}
}
@objc(SBCloseFileScriptCommand)
class SBCloseFileScriptCommand: NSScriptCommand, ScriptCommandDocumentTargeting {
override func performDefaultImplementation() -> Any? {
let logger = Logger.shared
// Get the target document (frontmost or specified)
guard let sublerDoc = targetedDocument() else {
logger.write(toLog: "No document available for close operation")
return nil
}
// Close the document without prompting for unsaved changes
DispatchQueue.main.async {
sublerDoc.close()
}
logger.write(toLog: "Script successfully closed document")
return nil
}
}
@objc(SBMetadataResult)
class SBMetadataResult: NSObject {
@objc dynamic var title: String?
@objc dynamic var year: NSNumber?
@objc dynamic var series: String?
@objc dynamic var season: NSNumber?
@objc dynamic var episode: NSNumber?
@objc dynamic var mediaType: String?
init(title: String?, year: Int? = nil, series: String? = nil, season: Int? = nil, episode: Int? = nil, mediaType: String?) {
self.title = title
self.year = year.map { NSNumber(value: $0) }
self.series = series
self.season = season.map { NSNumber(value: $0) }
self.episode = episode.map { NSNumber(value: $0) }
self.mediaType = mediaType
super.init()
}
}
@objc(SBFetchMetadataResultsScriptCommand)
class SBFetchMetadataResultsScriptCommand: NSScriptCommand, ScriptCommandDocumentTargeting {
override func performDefaultImplementation() -> Any? {
let logger = Logger.shared
guard let sublerDoc = targetedDocument() else {
logger.write(toLog: "No document available for fetching metadata results")
return []
}
// Access the MP42File through the custom Document subclass
let mp4File = sublerDoc.mp4
let searchTerms = mp4File.extractSearchTerms(fallbackURL: sublerDoc.fileURL)
logger.write(toLog: "Starting metadata search for terms: \(searchTerms)")
// Use a semaphore to make this synchronous, but run search on background queue
let semaphore = DispatchSemaphore(value: 0)
var searchResults: [SBMetadataResult] = []
// Get the optional limit parameter
let limit = self.evaluatedArguments?["limit"] as? Int
// Get the optional provider and language parameters
let provider = self.evaluatedArguments?["provider"] as? String
let language = self.evaluatedArguments?["language"] as? String
// Run the search on a background queue to avoid blocking main thread
DispatchQueue.global(qos: .userInitiated).async {
self.searchMetadataResults(terms: searchTerms, provider: provider, language: language) { results in
searchResults = results ?? []
logger.write(toLog: "Metadata search completed with \(searchResults.count) results")
semaphore.signal()
}
}
// Wait for the search to complete
semaphore.wait()
// Apply limit if specified
if let limit = limit, limit > 0 {
let limitedResults = Array(searchResults.prefix(limit))
searchResults = limitedResults
}
// Convert results to formatted strings
let formattedResults = searchResults.map { result in
if result.mediaType == "movie" {
if let year = result.year {
return "Movie: \(result.title ?? "Unknown") (\(year))"
} else {
return "Movie: \(result.title ?? "Unknown")"
}
} else if result.mediaType == "tvshow" {
var tvString = "TV: "
if let series = result.series {
tvString += series
}
if let season = result.season {
tvString += " S\(season)"
}
if let episode = result.episode {
tvString += "E\(episode)"
}
if let title = result.title {
tvString += " \(title)"
}
return tvString.isEmpty ? "Unknown TV Show" : tvString
} else {
return result.title ?? "Unknown"
}
}
logger.write(toLog: "Returning \(formattedResults.count) results")
return formattedResults
}
private func searchMetadataResults(terms: MetadataSearchTerms, provider: String? = nil, language: String? = nil, completion: @escaping ([SBMetadataResult]?) -> Void) {
// Determine which services to use based on provider parameter
let movieService: MetadataService
let tvShowService: MetadataService
if let providerName = provider {
// Use the specified provider for both movie and TV searches
let service = MetadataSearch.service(name: providerName)
movieService = service
tvShowService = service
} else {
// Use default services
movieService = MetadataSearch.defaultMovieService
tvShowService = MetadataSearch.defaultTVService
}
// Convert language to appropriate format for the service
let convertedLanguage: String?
if let languageCode = language {
if movieService.languageType == .ISO {
// For ISO services (TheMovieDB, TheTVDB), use the language code as-is
convertedLanguage = languageCode
} else {
// For custom services (Apple TV, iTunes Store), try to find a matching store
let availableLanguages = movieService.languages
if let matchingLanguage = availableLanguages.first(where: { $0.lowercased().contains(languageCode.lowercased()) }) {
convertedLanguage = matchingLanguage
} else {
// Fall back to default language if no match found
convertedLanguage = movieService.defaultLanguage
}
}
} else {
convertedLanguage = nil
}
// Determine which language to use for the search
let searchLanguage = convertedLanguage ?? movieService.defaultLanguage
// Perform the search based on media type
switch terms {
case .movie(let title):
let results = movieService.search(movie: title, language: searchLanguage)
// Convert MetadataResult to SBMetadataResult
let sbResults = results.map { result in
// Extract year from releaseDate if it's a string
let year: Int? = {
if let releaseDate = result[.releaseDate] as? String {
// Try to extract year from date string (e.g., "2023-12-25" -> 2023)
let components = releaseDate.split(separator: "-")
if let yearString = components.first {
return Int(yearString)
}
}
return nil
}()
return SBMetadataResult(
title: result[.name] as? String,
year: year,
series: nil,
season: nil,
episode: nil,
mediaType: "movie"
)
}
completion(sbResults)
case .tvShow(let title, let season, let episode):
let results = tvShowService.search(tvShow: title, language: searchLanguage, season: season, episode: episode)
// Convert MetadataResult to SBMetadataResult
let sbResults = results.map { result in
// Extract year from releaseDate if it's a string
let year: Int? = {
if let releaseDate = result[.releaseDate] as? String {
// Try to extract year from date string (e.g., "2023-12-25" -> 2023)
let components = releaseDate.split(separator: "-")
if let yearString = components.first {
return Int(yearString)
}
}
return nil
}()
return SBMetadataResult(
title: result[.name] as? String,
year: year,
series: result[.seriesName] as? String,
season: result[.season] as? Int,
episode: result[.episodeNumber] as? Int,
mediaType: "tvshow"
)
}
completion(sbResults)
case .none:
completion([])
}
}
}
@objc(SBFetchAndSetMetadataResultScriptCommand)
class SBFetchAndSetMetadataResultScriptCommand: NSScriptCommand, ScriptCommandDocumentTargeting {
override func performDefaultImplementation() -> Any? {
let logger = Logger.shared
// Get the result index from direct parameter
guard let resultIndex = self.directParameter as? Int else {
logger.write(toLog: "Missing result index parameter")
return nil
}
// Get the optional provider and language parameters
let provider = self.evaluatedArguments?["provider"] as? String
let language = self.evaluatedArguments?["language"] as? String
guard let sublerDoc = targetedDocument() else {
logger.write(toLog: "No document available for metadata operation")
return nil
}
// Access the MP42File through the custom Document subclass
let mp4File = sublerDoc.mp4
let searchTerms = mp4File.extractSearchTerms(fallbackURL: sublerDoc.fileURL)
// Perform search and apply the nth result
searchMetadataAndSetResult(terms: searchTerms, resultIndex: resultIndex - 1, provider: provider, language: language) { success in
DispatchQueue.main.async {
if success {
// Trigger UI refresh
if let windowController = sublerDoc.windowControllers.first as? DocumentWindowController {
windowController.reloadData()
}
logger.write(toLog: "Successfully set metadata result \(resultIndex)")
} else {
logger.write(toLog: "Failed to set metadata result \(resultIndex) - index out of bounds or no results")
}
}
}
return nil
}
private func searchMetadataAndSetResult(terms: MetadataSearchTerms, resultIndex: Int, provider: String?, language: String?, completion: @escaping (Bool) -> Void) {
// Determine which services to use based on provider parameter
let movieService: MetadataService
let tvShowService: MetadataService
if let providerName = provider {
// Use the specified provider for both movie and TV searches
let service = MetadataSearch.service(name: providerName)
movieService = service
tvShowService = service
} else {
// Use default services
movieService = MetadataSearch.defaultMovieService
tvShowService = MetadataSearch.defaultTVService
}
// Convert language to appropriate format for the service
let convertedLanguage: String?
if let languageCode = language {
if movieService.languageType == .ISO {
// For ISO services (TheMovieDB, TheTVDB), use the language code as-is
convertedLanguage = languageCode
} else {
// For custom services (Apple TV, iTunes Store), try to find a matching store
let availableLanguages = movieService.languages
if let matchingLanguage = availableLanguages.first(where: { $0.lowercased().contains(languageCode.lowercased()) }) {
convertedLanguage = matchingLanguage
} else {
// Fall back to default language if no match found
convertedLanguage = movieService.defaultLanguage
}
}
} else {
convertedLanguage = nil
}
// Determine which language to use for the search
let searchLanguage = convertedLanguage ?? movieService.defaultLanguage
// Get user preferences for artwork from Queue preferences
let queuePrefs = QueuePreferences()
let preferredArtwork = ArtworkType(rawValue: queuePrefs.providerArtwork) ?? .poster
let preferredArtworkSize = ArtworkSize(rawValue: queuePrefs.providerArtworkSize) ?? .standard
// Perform the search based on media type
switch terms {
case let .movie(title):
let movieSearch = MetadataSearch.movieSeach(service: movieService, movie: title, language: searchLanguage)
_ = movieSearch.search(completionHandler: { results in
if resultIndex >= 0 && resultIndex < results.count {
let selectedResult = results[resultIndex]
// Load additional metadata for the selected result
_ = movieSearch.loadAdditionalMetadata(selectedResult, completionHandler: { metadataResult in
// Handle artwork similar to QueueMetadataAction
let artworks = metadataResult.remoteArtworks
if preferredArtwork != .none && artworks.isEmpty == false {
let artwork: Artwork? = {
let type = preferredArtwork.isMovieType ? preferredArtwork : .poster
if let artwork = artworks.filter(by: type, size: preferredArtworkSize, service: movieService.name) {
return artwork
} else if let artwork = artworks.filter(by: .poster, size: .standard, service: movieService.name) {
return artwork
} else {
return artworks.first
}
}()
// Load and add artwork to metadata result BEFORE mapping
if let url = artwork?.url, let artworkData = URLSession.data(from: url) {
let mp42Image = MP42Image(data: artworkData, type: MP42_ART_JPEG)
metadataResult.artworks.append(mp42Image)
}
}
// Map the metadata using the same logic as QueueAction
let map = metadataResult.mediaKind == .movie ? MetadataPrefs.movieResultMap : MetadataPrefs.tvShowResultMap
let mappedMetadata = metadataResult.mappedMetadata(to: map, keepEmptyKeys: false)
// Apply the metadata
DispatchQueue.main.async {
if let sublerDoc = self.targetedDocument() {
sublerDoc.mp4.metadata.merge(mappedMetadata)
sublerDoc.updateChangeCount(.changeDone)
completion(true)
} else {
completion(false)
}
}
}).run()
} else {
completion(false)
}
}).run()
case let .tvShow(title, season, episode):
let tvSearch = MetadataSearch.tvSearch(service: tvShowService, tvShow: title, season: season, episode: episode, language: searchLanguage)
_ = tvSearch.search(completionHandler: { results in
if resultIndex >= 0 && resultIndex < results.count {
let selectedResult = results[resultIndex]
// Load additional metadata for the selected result
_ = tvSearch.loadAdditionalMetadata(selectedResult, completionHandler: { metadataResult in
// Handle artwork similar to QueueMetadataAction
let artworks = metadataResult.remoteArtworks
if preferredArtwork != .none && artworks.isEmpty == false {
let artwork: Artwork? = {
let type = preferredArtwork.isMovieType ? preferredArtwork : .poster
if let artwork = artworks.filter(by: type, size: preferredArtworkSize, service: tvShowService.name) {
return artwork
} else if let artwork = artworks.filter(by: .poster, size: .standard, service: tvShowService.name) {
return artwork
} else {
return artworks.first
}
}()
// Load and add artwork to metadata result BEFORE mapping
if let url = artwork?.url, let artworkData = URLSession.data(from: url) {
let mp42Image = MP42Image(data: artworkData, type: MP42_ART_JPEG)
metadataResult.artworks.append(mp42Image)
}
}
// Map the metadata using the same logic as QueueAction
let map = metadataResult.mediaKind == .movie ? MetadataPrefs.movieResultMap : MetadataPrefs.tvShowResultMap
let mappedMetadata = metadataResult.mappedMetadata(to: map, keepEmptyKeys: false)
// Apply the metadata
DispatchQueue.main.async {
if let sublerDoc = self.targetedDocument() {
sublerDoc.mp4.metadata.merge(mappedMetadata)
sublerDoc.updateChangeCount(.changeDone)
completion(true)
} else {
completion(false)
}
}
}).run()
} else {
completion(false)
}
}).run()
case .none:
completion(false)
}
}
}
+22 -10
View File
@@ -22,9 +22,13 @@
<string>com.apple.protected-mpeg-4-video</string> <string>com.apple.protected-mpeg-4-video</string>
</array> </array>
<key>NSDocumentClass</key> <key>NSDocumentClass</key>
<string>Subler.Document</string> <string>SBDocument</string>
</dict> </dict>
<dict> <dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>mp4</string>
</array>
<key>CFBundleTypeName</key> <key>CFBundleTypeName</key>
<string>Movie-MPEG4</string> <string>Movie-MPEG4</string>
<key>CFBundleTypeRole</key> <key>CFBundleTypeRole</key>
@@ -36,9 +40,13 @@
<string>public.mpeg-4</string> <string>public.mpeg-4</string>
</array> </array>
<key>NSDocumentClass</key> <key>NSDocumentClass</key>
<string>Subler.Document</string> <string>SBDocument</string>
</dict> </dict>
<dict> <dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>m4a</string>
</array>
<key>CFBundleTypeName</key> <key>CFBundleTypeName</key>
<string>Audio-MPEG4</string> <string>Audio-MPEG4</string>
<key>CFBundleTypeRole</key> <key>CFBundleTypeRole</key>
@@ -50,9 +58,13 @@
<string>public.mpeg-4-audio</string> <string>public.mpeg-4-audio</string>
</array> </array>
<key>NSDocumentClass</key> <key>NSDocumentClass</key>
<string>Subler.Document</string> <string>SBDocument</string>
</dict> </dict>
<dict> <dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>m4b</string>
</array>
<key>CFBundleTypeName</key> <key>CFBundleTypeName</key>
<string>Audiobook</string> <string>Audiobook</string>
<key>CFBundleTypeRole</key> <key>CFBundleTypeRole</key>
@@ -64,7 +76,7 @@
<string>com.apple.protected-mpeg-4-audio</string> <string>com.apple.protected-mpeg-4-audio</string>
</array> </array>
<key>NSDocumentClass</key> <key>NSDocumentClass</key>
<string>Subler.Document</string> <string>SBDocument</string>
</dict> </dict>
<dict> <dict>
<key>CFBundleTypeExtensions</key> <key>CFBundleTypeExtensions</key>
@@ -80,7 +92,7 @@
<string>com.apple.mpeg-4-ringtone</string> <string>com.apple.mpeg-4-ringtone</string>
</array> </array>
<key>NSDocumentClass</key> <key>NSDocumentClass</key>
<string>Subler.Document</string> <string>SBDocument</string>
</dict> </dict>
<dict> <dict>
<key>CFBundleTypeExtensions</key> <key>CFBundleTypeExtensions</key>
@@ -96,7 +108,7 @@
<key>LSHandlerRank</key> <key>LSHandlerRank</key>
<string>Alternate</string> <string>Alternate</string>
<key>NSDocumentClass</key> <key>NSDocumentClass</key>
<string>Subler.Document</string> <string>SBDocument</string>
</dict> </dict>
<dict> <dict>
<key>CFBundleTypeExtensions</key> <key>CFBundleTypeExtensions</key>
@@ -110,7 +122,7 @@
<key>LSHandlerRank</key> <key>LSHandlerRank</key>
<string>Alternate</string> <string>Alternate</string>
<key>NSDocumentClass</key> <key>NSDocumentClass</key>
<string>Subler.Document</string> <string>SBDocument</string>
</dict> </dict>
<dict> <dict>
<key>CFBundleTypeExtensions</key> <key>CFBundleTypeExtensions</key>
@@ -130,7 +142,7 @@
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string> <string>${EXECUTABLE_NAME}</string>
<key>CFBundleGetInfoString</key> <key>CFBundleGetInfoString</key>
<string>$(MARKETING_VERSION), Copyright 2024 Damiano Galassi</string> <string>$(MARKETING_VERSION), Copyright 2025 Damiano Galassi</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
@@ -152,13 +164,13 @@
<key>NSAppleScriptEnabled</key> <key>NSAppleScriptEnabled</key>
<true/> <true/>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>
<string>Copyright © 2009-2024, Damiano Galassi</string> <string>Copyright © 2009-2025, Damiano Galassi</string>
<key>NSMainNibFile</key> <key>NSMainNibFile</key>
<string>MainMenu</string> <string>MainMenu</string>
<key>NSPrincipalClass</key> <key>NSPrincipalClass</key>
<string>NSApplication</string> <string>NSApplication</string>
<key>OSAScriptingDefinition</key> <key>OSAScriptingDefinition</key>
<string>Queue.sdef</string> <string>Subler.sdef</string>
<key>SUAllowsAutomaticUpdates</key> <key>SUAllowsAutomaticUpdates</key>
<false/> <false/>
<key>SUFeedURL</key> <key>SUFeedURL</key>
+32 -1
View File
@@ -1,5 +1,36 @@
# Subler News # Subler News
## Subler 1.8.9
- Expanded the AppleScript dictionary [Mock1]
- Added additional keyboard shortcuts [Mock1]
- Added support for unofficial metadata often used for Audiobooks
- Make it possible to use the services ids in the metadata map
- Fixed the "Insert a chaper at the beginning" menu item action
- Fixed Swedish Ratings
- Fixed the "None" artwork option in the Queue
## Subler 1.8.8
- Fixed a crash that happened when editing a preset
## Subler 1.8.7
- Preserves additional metadata from Matroska
- Fixed a regression that made the "Send to queue" and "Queue" toolbar button unclickable
## Subler 1.8.6
- Added a "Check only selected track" contextual menu item in the importer sheet [karstenBriksoft]
- Added ability to set imported multichannel AAC track to Passthru + AAC [sxflynn]
- Added IPT-C2 and Undefined color profiles
- Improved the artworks views to make them remember the zoom level
- Improved the behaviour of a cancelled save operation to avoid running an optimize pass
- Fixed the issue where Apple TV metadata isn't returned for TV/Movies that Apple doesn't currently sell in the given region [Mock1]
## Subler 1.8.5 ## Subler 1.8.5
@@ -146,7 +177,7 @@
## Subler 1.5.22 ## Subler 1.5.22
* "4k" is not set automatically anymore because the AppleTV won't stream mp4 with such metadata. * "4k" is not set automatically anymore because the AppleTV won't stream mp4 with such metadata.
* Fixes an an additional issue that could led to a crash when importing a 5.1 channels ac3 file on macOS 10.15. * Fixes an issue that could led to a crash when importing a 5.1 channels ac3 file on macOS 10.15.
* Fixes Indian iTunes Store. * Fixes Indian iTunes Store.
-98
View File
@@ -1,98 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
<dictionary title="Subler Terminology" xmlns:xi="http://www.w3.org/2003/XInclude">
<xi:include href="file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef" xpointer="xpointer(/dictionary/suite)" />
<suite name="Subler Suite" code="sktc" description="Classes just for the Subler application.">
<cocoa name="Subler" />
<enumeration name="saveable file format" code="savf">
<enumerator name="Video-MPEG4" code="M4V " description="Video-MPEG4">
<cocoa string-value="com.apple.protected-mpeg-4-video"/>
</enumerator>
<enumerator name="Movie-MPEG4" code="MP4 " description="MPEG-4">
<cocoa string-value="public.mpeg-4"/>
</enumerator>
<enumerator name="Audio-MPEG4" code="M4A " description="Audio-MPEG4">
<cocoa string-value="public.mpeg-4-audio"/>
</enumerator>
</enumeration>
<class-extension extends="document" description="A Subler document.">
<cocoa class="SBDocument" />
</class-extension>
</suite>
<suite name="Queue Suite" code="ScTa" description="Queue suite.">
<class-extension extends="application" description="Queue's top level scripting object.">
<element type="queue item" access="r" description="The queue items">
<cocoa key="queueItems"/>
</element>
</class-extension>
<command name="add to queue" code="QueueAdd" description="Add a file to queue.">
<cocoa class="SBQueueScriptCommand"/>
<direct-parameter description="The file(s) to be added.">
<type type="file" list="yes"/>
</direct-parameter>
</command>
<command name="start queue and wait" code="QueueStw" description="Start the queue and wait until its completion.">
<cocoa class="SBQueueStartAndWaitScriptCommand"/>
</command>
<command name="start queue" code="QueueSta" description="Start the queue.">
<cocoa class="SBQueueStartScriptCommand"/>
</command>
<command name="stop queue" code="QueueSto" description="Stop the queue.">
<cocoa class="SBQueueStopScriptCommand"/>
</command>
<enumeration name="queue item status" code="Qsta" description="A status">
<enumerator name="ready" code="STA1" description="Ready status.">
<cocoa integer-value="0"/>
</enumerator>
<enumerator name="editing" code="STA2" description="Editing status.">
<cocoa integer-value="1"/>
</enumerator>
<enumerator name="working" code="STA3" description="Working status.">
<cocoa integer-value="2"/>
</enumerator>
<enumerator name="completed" code="STA4" description="Completed status.">
<cocoa integer-value="3"/>
</enumerator>
<enumerator name="failed" code="STA5" description="Failed status.">
<cocoa integer-value="4"/>
</enumerator>
<enumerator name="cancelled" code="STA6" description="Cancelled status.">
<cocoa integer-value="5"/>
</enumerator>
</enumeration>
<class name="queue item" code="QIte" description="A queue item" inherits="item" plural="queue items">
<cocoa class="SBQueueItem"/>
<property name="id" code="ID " type="text" access="r" description="The unique identifier of the queue item.">
<cocoa key="uniqueID"/>
</property>
<property name="status" code="StAt" type="queue item status" access="r" description="The status of the queue item.">
</property>
<property name="name" code="pnam" type="text" access="r" description="The name of the queue item.">
</property>
<property name="sourcePath" code="SOUR" type="text" access="r" description="The source URL of the queue item.">
<cocoa key="sourcePath"/>
</property>
<property name="destinationPath" code="DEST" type="text" access="r" description="The destination URL of the queue item.">
<cocoa key="destinationPath"/>
</property>
</class>
</suite>
</dictionary>
+16
View File
@@ -8,3 +8,19 @@ Subler is an Mac OS X app created to mux and tag mp4 files. The main features in
* Mux video, audio, chapters, subtitles and closed captions tracks from mov, mp4 and mkv. * Mux video, audio, chapters, subtitles and closed captions tracks from mov, mp4 and mkv.
* Raw formats: H.264 Elementary streams (.h264, .264), AAC (.aac), AC3 (.ac3), Scenarist (.scc), VobSub? (.idx). * Raw formats: H.264 Elementary streams (.h264, .264), AAC (.aac), AC3 (.ac3), Scenarist (.scc), VobSub? (.idx).
* metadata editing and TMDb, TVDB and iTunes Store support. * metadata editing and TMDb, TVDB and iTunes Store support.
### Build and run
Clone the repository and include all submodules
```
git clone --recurse-submodules https://github.com/SublerApp/Subler.git
```
If you already cloned without submodules and need to add the submodules manually, `cd` into the `./Subler` directory and clone the dependency submodules with
```
git submodule update --init --recursive
```
Open `Subler.xcodeproj` in XCode
Build and run the project by selecting the 'Subler' scheme (`Product` -> `Scheme` -> `Subler`) and clicking the 'Run' button in Xcode’s toolbar.
+6 -6
View File
@@ -206,12 +206,12 @@
"country" : "Sverige", "country" : "Sverige",
"storeCode" : 143456, "storeCode" : 143456,
"ratings" : [ "ratings" : [
{ "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "A", "itunes-value" : "000", "description" : "Barntillåten" }, { "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "Barntillåten", "itunes-value" : "000", "description" : "Barntillåten" },
{ "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "7", "itunes-value" : "125", "description" : "Från 7 år" }, { "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "Från 7 År", "itunes-value" : "125", "description" : "Från 7 år" },
{ "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "11", "itunes-value" : "225", "description" : "Från 11 år" }, { "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "Från 11 År", "itunes-value" : "225", "description" : "Från 11 år" },
{ "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "15", "itunes-value" : "400", "description" : "Från 15 år" }, { "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "Från 15 År", "itunes-value" : "400", "description" : "Från 15 år" },
{ "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "Unrated", "itunes-value" : "???", "description" : "Ocensurerad" }, { "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "Unrated", "itunes-value" : "???", "description" : "Ocensurerad" },
{ "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "Unrated", "itunes-value" : "???", "description" : "Inte klassificerad" } { "media" : "Movie & TV", "prefix" : "se-movie", "itunes-code" : "Unrated", "itunes-value" : "???", "description" : "Inte klassificerad" }
] ]
}, },
{ {
+445
View File
@@ -0,0 +1,445 @@
{
"data" : {
"AE" : {
"localesSupported" : [ "en_GB", "ar_AE" ],
"storefrontId" : 143481
},
"AG" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143540
},
"AI" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143538
},
"AM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143524
},
"AR" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143505
},
"AT" : {
"localesSupported" : [ "en_GB", "de_DE" ],
"storefrontId" : 143445
},
"AU" : {
"localesSupported" : [ "en_AU" ],
"storefrontId" : 143460
},
"AZ" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143568
},
"BE" : {
"localesSupported" : [ "nl_NL", "en_GB", "fr_FR" ],
"storefrontId" : 143446
},
"BG" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143526
},
"BH" : {
"localesSupported" : [ "en_GB", "ar_BH" ],
"storefrontId" : 143559
},
"BM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143542
},
"BN" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143560
},
"BO" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143556
},
"BR" : {
"localesSupported" : [ "en_GB", "pt_BR" ],
"storefrontId" : 143503
},
"BS" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143539
},
"BW" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143525
},
"BY" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143565
},
"BZ" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143555
},
"CA" : {
"localesSupported" : [ "fr_CA", "en_CA" ],
"storefrontId" : 143455
},
"CH" : {
"localesSupported" : [ "de_DE", "fr_FR", "de_CH", "en_GB", "it_IT" ],
"storefrontId" : 143459
},
"CL" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143483
},
"CO" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143501
},
"CR" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143495
},
"CV" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143580
},
"CY" : {
"localesSupported" : [ "tr_TR", "en_GB", "el_GR" ],
"storefrontId" : 143557
},
"CZ" : {
"localesSupported" : [ "en_GB", "cs_CZ" ],
"storefrontId" : 143489
},
"DE" : {
"localesSupported" : [ "en_GB", "de_DE" ],
"storefrontId" : 143443
},
"DK" : {
"localesSupported" : [ "en_GB", "da_DK" ],
"storefrontId" : 143458
},
"DM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143545
},
"DO" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143508
},
"EC" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143509
},
"EE" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143518
},
"EG" : {
"localesSupported" : [ "en_GB", "ar_EG" ],
"storefrontId" : 143516
},
"ES" : {
"localesSupported" : [ "ca_ES", "en_GB", "es_ES" ],
"storefrontId" : 143454
},
"FI" : {
"localesSupported" : [ "fi_FI", "en_GB" ],
"storefrontId" : 143447
},
"FJ" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143583
},
"FM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143591
},
"FR" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143442
},
"GB" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143444
},
"GD" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143546
},
"GH" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143573
},
"GM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143584
},
"GR" : {
"localesSupported" : [ "el_GR", "en_GB" ],
"storefrontId" : 143448
},
"GT" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143504
},
"GW" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143585
},
"HK" : {
"localesSupported" : [ "yue_Hant", "en_GB", "zh_Hant" ],
"storefrontId" : 143463
},
"HN" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143510
},
"HU" : {
"localesSupported" : [ "en_GB", "hu_HU" ],
"storefrontId" : 143482
},
"ID" : {
"localesSupported" : [ "en_GB", "id_ID" ],
"storefrontId" : 143476
},
"IE" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143449
},
"IL" : {
"localesSupported" : [ "en_GB", "iw_IL" ],
"storefrontId" : 143491
},
"IN" : {
"localesSupported" : [ "en_GB", "hi_IN" ],
"storefrontId" : 143467
},
"IT" : {
"localesSupported" : [ "it_IT", "en_GB" ],
"storefrontId" : 143450
},
"JO" : {
"localesSupported" : [ "en_GB", "ar_JO" ],
"storefrontId" : 143528
},
"JP" : {
"localesSupported" : [ "en_US", "ja_JP" ],
"storefrontId" : 143462
},
"KH" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143579
},
"KN" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143548
},
"KR" : {
"localesSupported" : [ "en_GB", "ko_KR" ],
"storefrontId" : 143466
},
"KY" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143544
},
"LA" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143587
},
"LB" : {
"localesSupported" : [ "en_GB", "ar_LB" ],
"storefrontId" : 143497
},
"LK" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143486
},
"LT" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143520
},
"LU" : {
"localesSupported" : [ "en_GB", "de_DE", "fr_FR" ],
"storefrontId" : 143451
},
"LV" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143519
},
"MD" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143523
},
"MN" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143592
},
"MO" : {
"localesSupported" : [ "yue_Hant", "en_GB", "zh_Hant" ],
"storefrontId" : 143515
},
"MT" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143521
},
"MU" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143533
},
"MX" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143468
},
"MY" : {
"localesSupported" : [ "ms_MY", "en_GB" ],
"storefrontId" : 143473
},
"MZ" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143593
},
"NA" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143594
},
"NE" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143534
},
"NI" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143512
},
"NL" : {
"localesSupported" : [ "en_GB", "nl_NL" ],
"storefrontId" : 143452
},
"NO" : {
"localesSupported" : [ "nb_NO", "en_GB" ],
"storefrontId" : 143457
},
"NZ" : {
"localesSupported" : [ "en_GB", "en_AU" ],
"storefrontId" : 143461
},
"OM" : {
"localesSupported" : [ "ar_OM", "en_GB" ],
"storefrontId" : 143562
},
"PA" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143485
},
"PE" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143507
},
"PH" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143474
},
"PL" : {
"localesSupported" : [ "en_GB", "pl_PL" ],
"storefrontId" : 143478
},
"PT" : {
"localesSupported" : [ "en_GB", "pt_PT" ],
"storefrontId" : 143453
},
"PY" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143513
},
"QA" : {
"localesSupported" : [ "ar_QA", "en_GB" ],
"storefrontId" : 143498
},
"RU" : {
"localesSupported" : [ "en_GB", "uk_UA", "ru_RU" ],
"storefrontId" : 143469
},
"SA" : {
"localesSupported" : [ "ar_SA", "en_GB" ],
"storefrontId" : 143479
},
"SE" : {
"localesSupported" : [ "en_GB", "sv_SE" ],
"storefrontId" : 143456
},
"SG" : {
"localesSupported" : [ "zh_Hans", "en_GB" ],
"storefrontId" : 143464
},
"SI" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143499
},
"SK" : {
"localesSupported" : [ "en_GB", "sk_SK" ],
"storefrontId" : 143496
},
"SV" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143506
},
"SZ" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143602
},
"TH" : {
"localesSupported" : [ "en_GB", "th_TH" ],
"storefrontId" : 143475
},
"TJ" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143603
},
"TM" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143604
},
"TR" : {
"localesSupported" : [ "en_GB", "tr_TR" ],
"storefrontId" : 143480
},
"TT" : {
"localesSupported" : [ "en_GB", "fr_FR" ],
"storefrontId" : 143551
},
"TW" : {
"localesSupported" : [ "en_GB", "zh_Hant" ],
"storefrontId" : 143470
},
"UA" : {
"localesSupported" : [ "en_GB", "uk_UA", "ru_RU" ],
"storefrontId" : 143492
},
"UG" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143537
},
"US" : {
"localesSupported" : [ "en_US", "es_MX" ],
"storefrontId" : 143441
},
"VE" : {
"localesSupported" : [ "en_GB", "es_MX" ],
"storefrontId" : 143502
},
"VG" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143543
},
"VN" : {
"localesSupported" : [ "vi_VI", "en_GB" ],
"storefrontId" : 143471
},
"ZA" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143472
},
"ZW" : {
"localesSupported" : [ "en_GB" ],
"storefrontId" : 143605
}
}
}
+201
View File
@@ -0,0 +1,201 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary SYSTEM "file:///localhost/System/Library/DTDs/sdef.dtd">
<dictionary title="Subler Terminology" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef" xpointer="xpointer(/dictionary/suite)" />
<class-extension extends="application" description="Queue's top level scripting object.">
<element type="queue item" access="r" description="The queue items">
<cocoa key="queueItems"/>
</element>
</class-extension>
<suite name="Subler Automation Suite" code="Subl" description="Automation functions for Subler.">
<!-- Commands -->
<!-- File Commands -->
<command name="import file" code="SublFilI" description="Import a file into the active document.">
<cocoa class="SBImportFileScriptCommand" />
<direct-parameter description="The file to import.">
<type type="file" />
</direct-parameter>
<parameter name="into" code="into" type="document" optional="yes" description="The target document to import into." />
</command>
<command name="save as" code="SublSave" description="Save the active document to a file.">
<cocoa class="SBSaveAsScriptCommand" />
<direct-parameter description="The destination file path.">
<type type="file" />
</direct-parameter>
<parameter name="doc" code="docu" type="document" optional="yes" description="The target document to save." />
</command>
<command name="send to queue" code="SublSenQ" description="Send the active document to the queue.">
<cocoa class="SBSendToQueueScriptCommand" />
<direct-parameter description="The destination file path.">
<type type="file" />
</direct-parameter>
<parameter name="doc" code="docu" type="document" optional="yes" description="The target document to send to queue." />
</command>
<command name="close document" code="SublClos" description="Close the active document window without prompting for unsaved changes.">
<cocoa class="SBCloseFileScriptCommand" />
<parameter name="doc" code="docu" type="document" optional="yes" description="The target document to close." />
</command>
<!-- Metadata Commands -->
<command name="fetch metadata" code="SublMeta" description="Fetch metadata for the active document.">
<cocoa class="SBFetchMetadataScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to fetch metadata for." />
</command>
<command name="fetch metadata candidates" code="SublFRes" description="Fetch metadata results without applying them.">
<cocoa class="SBFetchMetadataResultsScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to fetch metadata candidates for." />
<parameter name="limit" code="limt" type="integer" optional="yes" description="Maximum number of results to return." />
<parameter name="provider" code="prov" type="text" optional="yes" description="Metadata provider to use (Apple TV, TheMovieDB, TheTVDB, iTunes Store)." />
<parameter name="language" code="lang" type="text" optional="yes" description="Language for metadata search (e.g., 'en', 'es', 'fr')." />
<result description="The metadata results.">
<type type="text" list="yes"/>
</result>
</command>
<command name="fetch and set metadata candidate" code="SublSetM" description="Fetch metadata and set the specified result.">
<cocoa class="SBFetchAndSetMetadataResultScriptCommand" />
<direct-parameter description="The result index to set (1-based).">
<type type="integer" />
</direct-parameter>
<parameter name="into" code="into" type="document" optional="yes" description="The target document to set metadata for." />
<parameter name="provider" code="prov" type="text" optional="yes" description="Metadata provider to use (Apple TV, TheMovieDB, TheTVDB, iTunes Store)." />
<parameter name="language" code="lang" type="text" optional="yes" description="Language for metadata search (e.g., 'en', 'es', 'fr')." />
</command>
<!-- Edit Commands -->
<command name="organize alternate groups" code="SublOrgG" description="Organize alternate audio groups.">
<cocoa class="SBOrganizeAlternateGroupsScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to organize alternate groups for." />
</command>
<command name="clear track names" code="SublClea" description="Clear all track names.">
<cocoa class="SBClearTrackNamesScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to clear track names for." />
</command>
<command name="prettify audio track names" code="SublPret" description="Prettify audio track names.">
<cocoa class="SBPrettifyAudioTrackNamesScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to prettify audio track names for." />
</command>
<command name="fix audio fallbacks" code="SublFixF" description="Fix audio fallback settings.">
<cocoa class="SBFixAudioFallbacksScriptCommand" />
<parameter name="into" code="into" type="document" optional="yes" description="The target document to fix audio fallbacks for." />
</command>
<!-- Queue Commands -->
<command name="add to queue" code="SublQAdd" description="Add a file to queue.">
<cocoa class="SBQueueScriptCommand"/>
<direct-parameter description="The file(s) to be added.">
<type type="file" list="yes"/>
</direct-parameter>
</command>
<command name="start queue and wait" code="SublQStw" description="Start the queue and wait until its completion.">
<cocoa class="SBQueueStartAndWaitScriptCommand"/>
</command>
<command name="start queue" code="SublQSta" description="Start the queue.">
<cocoa class="SBQueueStartScriptCommand"/>
</command>
<command name="stop queue" code="SublQSto" description="Stop the queue.">
<cocoa class="SBQueueStopScriptCommand"/>
</command>
<command name="remove completed items from queue" code="SublQRem" description="Remove all completed items from the queue.">
<cocoa class="SBQueueRemoveCompletedScriptCommand"/>
</command>
<command name="get queue status" code="SublQSts" description="Get the current status of the queue.">
<cocoa class="SBQueueStatusScriptCommand"/>
<result description="The status of the queue.">
<type type="queue status"/>
</result>
</command>
<!-- Queue Enumerations -->
<enumeration name="queue status" code="QSts" description="The status of the queue.">
<enumerator name="idle" code="QIDL" description="Queue is idle.">
<cocoa integer-value="0"/>
</enumerator>
<enumerator name="running" code="QRUN" description="Queue is running.">
<cocoa integer-value="1"/>
</enumerator>
<enumerator name="completed" code="QCOM" description="Queue has completed.">
<cocoa integer-value="2"/>
</enumerator>
</enumeration>
<enumeration name="queue item status" code="QISt" description="A status">
<enumerator name="ready" code="STA1" description="Ready status.">
<cocoa integer-value="0"/>
</enumerator>
<enumerator name="editing" code="STA2" description="Editing status.">
<cocoa integer-value="1"/>
</enumerator>
<enumerator name="working" code="STA3" description="Working status.">
<cocoa integer-value="2"/>
</enumerator>
<enumerator name="completed" code="STA4" description="Completed status.">
<cocoa integer-value="3"/>
</enumerator>
<enumerator name="failed" code="STA5" description="Failed status.">
<cocoa integer-value="4"/>
</enumerator>
<enumerator name="cancelled" code="STA6" description="Cancelled status.">
<cocoa integer-value="5"/>
</enumerator>
</enumeration>
<!-- Queue Classes -->
<class name="document" code="docu" description="A Subler document" plural="documents">
<cocoa class="SBDocument"/>
<property name="id" code="ID " type="integer" access="r" description="The unique identifier of the document.">
<cocoa key="uniqueID"/>
</property>
<property name="name" code="pnam" type="text" access="r" description="The name of the document.">
<cocoa key="displayName"/>
</property>
<property name="modified" code="imod" type="boolean" access="r" description="Whether the document has been modified.">
<cocoa key="isDocumentEdited"/>
</property>
<property name="file" code="file" type="file" access="r" description="The file associated with the document.">
<cocoa key="fileURL"/>
</property>
</class>
<class name="queue item" code="QIte" description="A queue item" inherits="item" plural="queue items">
<cocoa class="SBQueueItem"/>
<property name="id" code="ID " type="text" access="r" description="The unique identifier of the queue item.">
<cocoa key="uniqueID"/>
</property>
<property name="status" code="StAt" type="queue item status" access="r" description="The status of the queue item.">
</property>
<property name="name" code="pnam" type="text" access="r" description="The name of the queue item.">
</property>
<property name="sourcePath" code="SOUR" type="text" access="r" description="The source URL of the queue item.">
<cocoa key="sourcePath"/>
</property>
<property name="destinationPath" code="DEST" type="text" access="r" description="The destination URL of the queue item.">
<cocoa key="destinationPath"/>
</property>
</class>
</suite>
</dictionary>
+31 -11
View File
@@ -8,6 +8,7 @@
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */; }; 1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */; };
4AFFB6D22DF751110099E229 /* Subler.sdef in Resources */ = {isa = PBXBuildFile; fileRef = 4AFFB6D12DF751110099E229 /* Subler.sdef */; };
61CEC0CE1E7569E4000FECC1 /* MultiSelectView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 61CEC0CC1E7569E4000FECC1 /* MultiSelectView.xib */; }; 61CEC0CE1E7569E4000FECC1 /* MultiSelectView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 61CEC0CC1E7569E4000FECC1 /* MultiSelectView.xib */; };
8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 2A37F4B9FDCFA73011CA2CEA /* Credits.rtf */; }; 8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 2A37F4B9FDCFA73011CA2CEA /* Credits.rtf */; };
8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165FFE840EACC02AAC07 /* InfoPlist.strings */; }; 8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165FFE840EACC02AAC07 /* InfoPlist.strings */; };
@@ -22,7 +23,6 @@
A90300C81DAE72C4008237D8 /* PresetPrefsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A90300CA1DAE72C4008237D8 /* PresetPrefsViewController.xib */; }; A90300C81DAE72C4008237D8 /* PresetPrefsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A90300CA1DAE72C4008237D8 /* PresetPrefsViewController.xib */; };
A90331BD23ED7EE5006BB91D /* Prefs.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90331BC23ED7EE5006BB91D /* Prefs.swift */; }; A90331BD23ED7EE5006BB91D /* Prefs.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90331BC23ED7EE5006BB91D /* Prefs.swift */; };
A9067A0C1F3CA4E6008011DC /* MetadataPrefsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9067A0B1F3CA4E6008011DC /* MetadataPrefsViewController.swift */; }; A9067A0C1F3CA4E6008011DC /* MetadataPrefsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9067A0B1F3CA4E6008011DC /* MetadataPrefsViewController.swift */; };
A906B5B11E434872007D12B1 /* Queue.sdef in Resources */ = {isa = PBXBuildFile; fileRef = A906B5B01E434872007D12B1 /* Queue.sdef */; };
A90B023B10F3290A000416F3 /* PrefsWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A90B023910F3290A000416F3 /* PrefsWindowController.xib */; }; A90B023B10F3290A000416F3 /* PrefsWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A90B023910F3290A000416F3 /* PrefsWindowController.xib */; };
A90B094C235614D200F1B191 /* AppleTV.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90B094B235614D200F1B191 /* AppleTV.swift */; }; A90B094C235614D200F1B191 /* AppleTV.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90B094B235614D200F1B191 /* AppleTV.swift */; };
A90BC5E31F3A139700F9F3F3 /* MetadataResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90BC5E21F3A139700F9F3F3 /* MetadataResult.swift */; }; A90BC5E31F3A139700F9F3F3 /* MetadataResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90BC5E21F3A139700F9F3F3 /* MetadataResult.swift */; };
@@ -86,6 +86,7 @@
A99189D11F2F88F700623ED7 /* ChapterSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */; }; A99189D11F2F88F700623ED7 /* ChapterSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */; };
A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A997B0A91F348AB000974C9C /* MetadataSearchController.swift */; }; A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A997B0A91F348AB000974C9C /* MetadataSearchController.swift */; };
A998DABF1BA54CFF004D7969 /* MediaTagsController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A998DABD1BA54CFF004D7969 /* MediaTagsController.xib */; }; A998DABF1BA54CFF004D7969 /* MediaTagsController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A998DABD1BA54CFF004D7969 /* MediaTagsController.xib */; };
A99B7FD82D53764F0027BCB5 /* AppleTVv3.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99B7FD72D53764F0027BCB5 /* AppleTVv3.swift */; };
A99D23212029CD32002E7F27 /* PrefsWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99D23202029CD32002E7F27 /* PrefsWindow.swift */; }; A99D23212029CD32002E7F27 /* PrefsWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99D23202029CD32002E7F27 /* PrefsWindow.swift */; };
A9A4A966202F51FA00482D12 /* SaveOptions.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9A4A968202F51FA00482D12 /* SaveOptions.xib */; }; A9A4A966202F51FA00482D12 /* SaveOptions.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9A4A968202F51FA00482D12 /* SaveOptions.xib */; };
A9A4A96B202F51FF00482D12 /* ProgressViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9A4A96D202F51FF00482D12 /* ProgressViewController.xib */; }; A9A4A96B202F51FF00482D12 /* ProgressViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9A4A96D202F51FF00482D12 /* ProgressViewController.xib */; };
@@ -113,8 +114,11 @@
A9C31E602029A80F00CEF474 /* AdvancedPrefsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C31E5E2029A80F00CEF474 /* AdvancedPrefsViewController.swift */; }; A9C31E602029A80F00CEF474 /* AdvancedPrefsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C31E5E2029A80F00CEF474 /* AdvancedPrefsViewController.swift */; };
A9C31E642029A82200CEF474 /* AdvancedPrefsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C31E622029A82200CEF474 /* AdvancedPrefsViewController.xib */; }; A9C31E642029A82200CEF474 /* AdvancedPrefsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C31E622029A82200CEF474 /* AdvancedPrefsViewController.xib */; };
A9C3E44A205C07F4004DE24E /* OptionsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C3E449205C07F4004DE24E /* OptionsViewController.swift */; }; A9C3E44A205C07F4004DE24E /* OptionsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C3E449205C07F4004DE24E /* OptionsViewController.swift */; };
A9C51DF42E4B4548003E82E6 /* ScriptCommand.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C51DF32E4B4548003E82E6 /* ScriptCommand.swift */; };
A9C5FA7419FA2FEC0051F3FF /* SBActivityWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C5FA7219FA2FEC0051F3FF /* SBActivityWindow.xib */; }; A9C5FA7419FA2FEC0051F3FF /* SBActivityWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C5FA7219FA2FEC0051F3FF /* SBActivityWindow.xib */; };
A9C73536206B8F9900794673 /* QueuePreferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C73535206B8F9900794673 /* QueuePreferences.swift */; }; A9C73536206B8F9900794673 /* QueuePreferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C73535206B8F9900794673 /* QueuePreferences.swift */; };
A9CB19022D10415D0074DC9F /* Storefronts.json in Resources */ = {isa = PBXBuildFile; fileRef = A9CB19012D10415D0074DC9F /* Storefronts.json */; };
A9CB19052D10417D0074DC9F /* Alpha2.json in Resources */ = {isa = PBXBuildFile; fileRef = A9CB19042D10417D0074DC9F /* Alpha2.json */; };
A9CBAB1E1F29C083001C26B3 /* MetadataImporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */; }; A9CBAB1E1F29C083001C26B3 /* MetadataImporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */; };
A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9D4B8651C05BD04007845C4 /* SBChapterSearch.xib */; }; A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9D4B8651C05BD04007845C4 /* SBChapterSearch.xib */; };
A9D64527202CA92400BA172B /* SaveOptions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D64525202CA92400BA172B /* SaveOptions.swift */; }; A9D64527202CA92400BA172B /* SaveOptions.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9D64525202CA92400BA172B /* SaveOptions.swift */; };
@@ -190,6 +194,7 @@
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; }; 1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
2A37F4C5FDCFA73011CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; }; 2A37F4C5FDCFA73011CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
4AFFB6D12DF751110099E229 /* Subler.sdef */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = Subler.sdef; sourceTree = "<group>"; };
610362271E76D66A000DAE60 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = Classes/PropertyView/it.lproj/MultiSelectView.strings; sourceTree = "<group>"; }; 610362271E76D66A000DAE60 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = Classes/PropertyView/it.lproj/MultiSelectView.strings; sourceTree = "<group>"; };
61CEC0CD1E7569E4000FECC1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Classes/PropertyView/Base.lproj/MultiSelectView.xib; sourceTree = "<group>"; }; 61CEC0CD1E7569E4000FECC1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Classes/PropertyView/Base.lproj/MultiSelectView.xib; sourceTree = "<group>"; };
8D15AC360486D014006FF6A4 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; 8D15AC360486D014006FF6A4 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -206,7 +211,6 @@
A90300C91DAE72C4008237D8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/PresetPrefsViewController.xib; sourceTree = "<group>"; }; A90300C91DAE72C4008237D8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/PresetPrefsViewController.xib; sourceTree = "<group>"; };
A90331BC23ED7EE5006BB91D /* Prefs.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = Prefs.swift; path = Classes/Prefs.swift; sourceTree = "<group>"; }; A90331BC23ED7EE5006BB91D /* Prefs.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = Prefs.swift; path = Classes/Prefs.swift; sourceTree = "<group>"; };
A9067A0B1F3CA4E6008011DC /* MetadataPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataPrefsViewController.swift; path = Classes/MetadataPrefsViewController.swift; sourceTree = "<group>"; }; A9067A0B1F3CA4E6008011DC /* MetadataPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataPrefsViewController.swift; path = Classes/MetadataPrefsViewController.swift; sourceTree = "<group>"; };
A906B5B01E434872007D12B1 /* Queue.sdef */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Queue.sdef; sourceTree = "<group>"; };
A90B094B235614D200F1B191 /* AppleTV.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppleTV.swift; path = Classes/MetadataImporters/AppleTV.swift; sourceTree = "<group>"; }; A90B094B235614D200F1B191 /* AppleTV.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppleTV.swift; path = Classes/MetadataImporters/AppleTV.swift; sourceTree = "<group>"; };
A90BC5E21F3A139700F9F3F3 /* MetadataResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataResult.swift; path = Classes/MetadataImporters/MetadataResult.swift; sourceTree = "<group>"; }; A90BC5E21F3A139700F9F3F3 /* MetadataResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataResult.swift; path = Classes/MetadataImporters/MetadataResult.swift; sourceTree = "<group>"; };
A90C3E0A1FD16AF200F64532 /* TokensViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TokensViewController.swift; path = Classes/TokensViewController.swift; sourceTree = "<group>"; }; A90C3E0A1FD16AF200F64532 /* TokensViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TokensViewController.swift; path = Classes/TokensViewController.swift; sourceTree = "<group>"; };
@@ -351,6 +355,7 @@
A99189CC1F2F87EC00623ED7 /* ChapterImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterImporter.swift; path = Classes/MetadataImporters/ChapterImporter.swift; sourceTree = "<group>"; }; A99189CC1F2F87EC00623ED7 /* ChapterImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterImporter.swift; path = Classes/MetadataImporters/ChapterImporter.swift; sourceTree = "<group>"; };
A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterSearchController.swift; path = Classes/ChapterSearchController.swift; sourceTree = "<group>"; }; A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterSearchController.swift; path = Classes/ChapterSearchController.swift; sourceTree = "<group>"; };
A997B0A91F348AB000974C9C /* MetadataSearchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataSearchController.swift; path = Classes/MetadataSearchController.swift; sourceTree = "<group>"; }; A997B0A91F348AB000974C9C /* MetadataSearchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataSearchController.swift; path = Classes/MetadataSearchController.swift; sourceTree = "<group>"; };
A99B7FD72D53764F0027BCB5 /* AppleTVv3.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppleTVv3.swift; path = Classes/MetadataImporters/AppleTVv3.swift; sourceTree = "<group>"; };
A99D23202029CD32002E7F27 /* PrefsWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PrefsWindow.swift; path = Classes/PrefsWindow.swift; sourceTree = "<group>"; }; A99D23202029CD32002E7F27 /* PrefsWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PrefsWindow.swift; path = Classes/PrefsWindow.swift; sourceTree = "<group>"; };
A9A4A967202F51FA00482D12 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SaveOptions.xib; sourceTree = "<group>"; }; A9A4A967202F51FA00482D12 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SaveOptions.xib; sourceTree = "<group>"; };
A9A4A96C202F51FF00482D12 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ProgressViewController.xib; sourceTree = "<group>"; }; A9A4A96C202F51FF00482D12 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ProgressViewController.xib; sourceTree = "<group>"; };
@@ -390,7 +395,10 @@
A9C31E5E2029A80F00CEF474 /* AdvancedPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AdvancedPrefsViewController.swift; path = Classes/AdvancedPrefsViewController.swift; sourceTree = "<group>"; }; A9C31E5E2029A80F00CEF474 /* AdvancedPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AdvancedPrefsViewController.swift; path = Classes/AdvancedPrefsViewController.swift; sourceTree = "<group>"; };
A9C31E632029A82200CEF474 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/AdvancedPrefsViewController.xib; sourceTree = "<group>"; }; A9C31E632029A82200CEF474 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/AdvancedPrefsViewController.xib; sourceTree = "<group>"; };
A9C3E449205C07F4004DE24E /* OptionsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OptionsViewController.swift; path = Classes/OptionsViewController.swift; sourceTree = "<group>"; }; A9C3E449205C07F4004DE24E /* OptionsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OptionsViewController.swift; path = Classes/OptionsViewController.swift; sourceTree = "<group>"; };
A9C51DF32E4B4548003E82E6 /* ScriptCommand.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ScriptCommand.swift; path = Classes/ScriptCommand.swift; sourceTree = "<group>"; };
A9C73535206B8F9900794673 /* QueuePreferences.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = QueuePreferences.swift; path = Classes/QueuePreferences.swift; sourceTree = "<group>"; }; A9C73535206B8F9900794673 /* QueuePreferences.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = QueuePreferences.swift; path = Classes/QueuePreferences.swift; sourceTree = "<group>"; };
A9CB19012D10415D0074DC9F /* Storefronts.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = Storefronts.json; sourceTree = "<group>"; };
A9CB19042D10417D0074DC9F /* Alpha2.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = Alpha2.json; sourceTree = "<group>"; };
A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataImporter.swift; path = Classes/MetadataImporters/MetadataImporter.swift; sourceTree = "<group>"; }; A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataImporter.swift; path = Classes/MetadataImporters/MetadataImporter.swift; sourceTree = "<group>"; };
A9D64525202CA92400BA172B /* SaveOptions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SaveOptions.swift; path = Classes/SaveOptions.swift; sourceTree = "<group>"; }; A9D64525202CA92400BA172B /* SaveOptions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SaveOptions.swift; path = Classes/SaveOptions.swift; sourceTree = "<group>"; };
A9DA03E122A0211C0056AE7B /* OCRPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OCRPrefsViewController.swift; path = Classes/OCRPrefsViewController.swift; sourceTree = "<group>"; }; A9DA03E122A0211C0056AE7B /* OCRPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OCRPrefsViewController.swift; path = Classes/OCRPrefsViewController.swift; sourceTree = "<group>"; };
@@ -479,8 +487,8 @@
2A37F4AAFDCFA73011CA2CEA /* MP4Sub */ = { 2A37F4AAFDCFA73011CA2CEA /* MP4Sub */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
4AFFB6D12DF751110099E229 /* Subler.sdef */,
A9B4EE4E1643EBF3009AF6BC /* Subler.entitlements */, A9B4EE4E1643EBF3009AF6BC /* Subler.entitlements */,
A906B5B01E434872007D12B1 /* Queue.sdef */,
2A37F4ABFDCFA73011CA2CEA /* Classes */, 2A37F4ABFDCFA73011CA2CEA /* Classes */,
2A37F4AFFDCFA73011CA2CEA /* Other Sources */, 2A37F4AFFDCFA73011CA2CEA /* Other Sources */,
2A37F4B8FDCFA73011CA2CEA /* Resources */, 2A37F4B8FDCFA73011CA2CEA /* Resources */,
@@ -496,6 +504,7 @@
A9FAC5FE1BAC3BAC00525E42 /* Document */, A9FAC5FE1BAC3BAC00525E42 /* Document */,
A9AF6A7818D0537F00FAAB08 /* Queue */, A9AF6A7818D0537F00FAAB08 /* Queue */,
A9915ABB1F4B26A5003C57D1 /* Presets */, A9915ABB1F4B26A5003C57D1 /* Presets */,
A9C51DF32E4B4548003E82E6 /* ScriptCommand.swift */,
A9BE561A220307F100FF6BE3 /* Utilities.swift */, A9BE561A220307F100FF6BE3 /* Utilities.swift */,
A9395E341F8B9ACA004C402B /* MP42FileAdditions.swift */, A9395E341F8B9ACA004C402B /* MP42FileAdditions.swift */,
A91EB968205ABAF400392E1C /* NSWindowAdditions.swift */, A91EB968205ABAF400392E1C /* NSWindowAdditions.swift */,
@@ -530,6 +539,8 @@
089C165FFE840EACC02AAC07 /* InfoPlist.strings */, 089C165FFE840EACC02AAC07 /* InfoPlist.strings */,
8D15AC360486D014006FF6A4 /* Info.plist */, 8D15AC360486D014006FF6A4 /* Info.plist */,
CDE8E451174CBBD4009410B5 /* iTunesStores.json */, CDE8E451174CBBD4009410B5 /* iTunesStores.json */,
A9CB19012D10415D0074DC9F /* Storefronts.json */,
A9CB19042D10417D0074DC9F /* Alpha2.json */,
A97FA42123E9877900EE5833 /* Ratings.json */, A97FA42123E9877900EE5833 /* Ratings.json */,
A94A6A581ED1C5CA00049F7D /* ParseFilename */, A94A6A581ED1C5CA00049F7D /* ParseFilename */,
); );
@@ -705,6 +716,7 @@
A97FA41D23E9837000EE5833 /* Ratings.swift */, A97FA41D23E9837000EE5833 /* Ratings.swift */,
A9E97F131F274F1100DBA586 /* iTunesStore.swift */, A9E97F131F274F1100DBA586 /* iTunesStore.swift */,
A90B094B235614D200F1B191 /* AppleTV.swift */, A90B094B235614D200F1B191 /* AppleTV.swift */,
A99B7FD72D53764F0027BCB5 /* AppleTVv3.swift */,
A98D98451F0280CB00A77ABC /* TheMovieDB.swift */, A98D98451F0280CB00A77ABC /* TheMovieDB.swift */,
A98D98471F02820F00A77ABC /* TheMovieDBService.swift */, A98D98471F02820F00A77ABC /* TheMovieDBService.swift */,
A9B514181EFC12310055A035 /* TheTVDB.swift */, A9B514181EFC12310055A035 /* TheTVDB.swift */,
@@ -752,7 +764,7 @@
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
BuildIndependentTargetsInParallel = YES; BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1540; LastUpgradeCheck = 1640;
TargetAttributes = { TargetAttributes = {
8D15AC270486D014006FF6A4 = { 8D15AC270486D014006FF6A4 = {
LastSwiftMigration = 1020; LastSwiftMigration = 1020;
@@ -821,6 +833,7 @@
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */, A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */,
A9CB19022D10415D0074DC9F /* Storefronts.json in Resources */,
A9AB486617F0AEFD000AA72E /* MovieView.xib in Resources */, A9AB486617F0AEFD000AA72E /* MovieView.xib in Resources */,
A9C31E5D2029A79000CEF474 /* GeneralPrefsViewController.xib in Resources */, A9C31E5D2029A79000CEF474 /* GeneralPrefsViewController.xib in Resources */,
A98542DD20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib in Resources */, A98542DD20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib in Resources */,
@@ -829,12 +842,12 @@
A9AB486717F0AEFD000AA72E /* SoundView.xib in Resources */, A9AB486717F0AEFD000AA72E /* SoundView.xib in Resources */,
A9F5820C1DCC861F005F3E92 /* Assets.xcassets in Resources */, A9F5820C1DCC861F005F3E92 /* Assets.xcassets in Resources */,
8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */, 8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */,
A906B5B11E434872007D12B1 /* Queue.sdef in Resources */,
A93105391F9758EC00605146 /* FileImportController.xib in Resources */, A93105391F9758EC00605146 /* FileImportController.xib in Resources */,
A9AB486517F0AEFD000AA72E /* EmptyView.xib in Resources */, A9AB486517F0AEFD000AA72E /* EmptyView.xib in Resources */,
1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */, 1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */,
A90300C81DAE72C4008237D8 /* PresetPrefsViewController.xib in Resources */, A90300C81DAE72C4008237D8 /* PresetPrefsViewController.xib in Resources */,
A9C5FA7419FA2FEC0051F3FF /* SBActivityWindow.xib in Resources */, A9C5FA7419FA2FEC0051F3FF /* SBActivityWindow.xib in Resources */,
4AFFB6D22DF751110099E229 /* Subler.sdef in Resources */,
A90B023B10F3290A000416F3 /* PrefsWindowController.xib in Resources */, A90B023B10F3290A000416F3 /* PrefsWindowController.xib in Resources */,
A9AB486417F0AEFD000AA72E /* ChapterView.xib in Resources */, A9AB486417F0AEFD000AA72E /* ChapterView.xib in Resources */,
A9AB486817F0AEFD000AA72E /* VideoView.xib in Resources */, A9AB486817F0AEFD000AA72E /* VideoView.xib in Resources */,
@@ -850,6 +863,7 @@
A98542D720D197D300EB9803 /* ArtworkSelector.xib in Resources */, A98542D720D197D300EB9803 /* ArtworkSelector.xib in Resources */,
A9ECA0602029A13800D5F30C /* OffsetViewController.xib in Resources */, A9ECA0602029A13800D5F30C /* OffsetViewController.xib in Resources */,
A9ACF03222A2BCF200AD5B12 /* OCRPrefsViewController.xib in Resources */, A9ACF03222A2BCF200AD5B12 /* OCRPrefsViewController.xib in Resources */,
A9CB19052D10417D0074DC9F /* Alpha2.json in Resources */,
A97FA42223E9877900EE5833 /* Ratings.json in Resources */, A97FA42223E9877900EE5833 /* Ratings.json in Resources */,
A961476713F568210068F161 /* Queue.xib in Resources */, A961476713F568210068F161 /* Queue.xib in Resources */,
A9BA1AF31DBF7DD800FD0B38 /* Localizable.strings in Resources */, A9BA1AF31DBF7DD800FD0B38 /* Localizable.strings in Resources */,
@@ -928,6 +942,8 @@
A9C31E572029A75F00CEF474 /* GeneralPrefsViewController.swift in Sources */, A9C31E572029A75F00CEF474 /* GeneralPrefsViewController.swift in Sources */,
A9AE26C01F3B66470041A57D /* SquaredTVArt.swift in Sources */, A9AE26C01F3B66470041A57D /* SquaredTVArt.swift in Sources */,
A9B1056E2025D9B9009E91FC /* TracksViewController.swift in Sources */, A9B1056E2025D9B9009E91FC /* TracksViewController.swift in Sources */,
A9C51DF42E4B4548003E82E6 /* ScriptCommand.swift in Sources */,
A99B7FD82D53764F0027BCB5 /* AppleTVv3.swift in Sources */,
A9B514191EFC12310055A035 /* TheTVDB.swift in Sources */, A9B514191EFC12310055A035 /* TheTVDB.swift in Sources */,
A9C31E602029A80F00CEF474 /* AdvancedPrefsViewController.swift in Sources */, A9C31E602029A80F00CEF474 /* AdvancedPrefsViewController.swift in Sources */,
A979B3862025C8BF00468362 /* DocumentWindowController.swift in Sources */, A979B3862025C8BF00468362 /* DocumentWindowController.swift in Sources */,
@@ -1381,6 +1397,7 @@
buildSettings = { buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO; ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_OPTIMIZATION = space; ASSETCATALOG_COMPILER_OPTIMIZATION = space;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES; CLANG_ENABLE_OBJC_ARC = YES;
@@ -1390,7 +1407,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO; COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.8.5; CURRENT_PROJECT_VERSION = 1.8.9;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
@@ -1407,7 +1424,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MARKETING_VERSION = 1.8.5; MARKETING_VERSION = 1.8.9;
OTHER_CFLAGS = ""; OTHER_CFLAGS = "";
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks"; OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
OTHER_SWIFT_FLAGS = ""; OTHER_SWIFT_FLAGS = "";
@@ -1423,6 +1440,7 @@
buildSettings = { buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO; ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_OPTIMIZATION = space; ASSETCATALOG_COMPILER_OPTIMIZATION = space;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES; CLANG_ENABLE_OBJC_ARC = YES;
@@ -1431,7 +1449,7 @@
CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_IDENTITY = "Mac Developer";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.8.5; CURRENT_PROJECT_VERSION = 1.8.9;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
@@ -1447,7 +1465,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MARKETING_VERSION = 1.8.5; MARKETING_VERSION = 1.8.9;
OTHER_CFLAGS = ""; OTHER_CFLAGS = "";
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks"; OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
OTHER_SWIFT_FLAGS = ""; OTHER_SWIFT_FLAGS = "";
@@ -1461,6 +1479,7 @@
C05733CC08A9546B00998B17 /* Debug */ = { C05733CC08A9546B00998B17 /* Debug */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_OPTIMIZATION = space; ASSETCATALOG_COMPILER_OPTIMIZATION = space;
CLANG_ANALYZER_GCD_PERFORMANCE = YES; CLANG_ANALYZER_GCD_PERFORMANCE = YES;
CLANG_ANALYZER_LOCALIZABILITY_EMPTY_CONTEXT = YES; CLANG_ANALYZER_LOCALIZABILITY_EMPTY_CONTEXT = YES;
@@ -1549,6 +1568,7 @@
C05733CD08A9546B00998B17 /* Release */ = { C05733CD08A9546B00998B17 /* Release */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_OPTIMIZATION = space; ASSETCATALOG_COMPILER_OPTIMIZATION = space;
CLANG_ANALYZER_GCD_PERFORMANCE = YES; CLANG_ANALYZER_GCD_PERFORMANCE = YES;
CLANG_ANALYZER_LOCALIZABILITY_EMPTY_CONTEXT = YES; CLANG_ANALYZER_LOCALIZABILITY_EMPTY_CONTEXT = YES;
@@ -1660,8 +1680,8 @@
isa = XCRemoteSwiftPackageReference; isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/sparkle-project/Sparkle"; repositoryURL = "https://github.com/sparkle-project/Sparkle";
requirement = { requirement = {
branch = 2.x; kind = exactVersion;
kind = branch; version = 2.7.1;
}; };
}; };
/* End XCRemoteSwiftPackageReference section */ /* End XCRemoteSwiftPackageReference section */
+1 -1
View File
@@ -9,5 +9,5 @@
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject @interface AppDelegate : NSObject<NSApplicationDelegate>
@end @end
+5
View File
@@ -52,4 +52,9 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap)
return NO; return NO;
} }
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app
{
return YES;
}
@end @end
+5
View File
@@ -52,6 +52,11 @@ extern NSString *libraryPath;
} }
} }
+ (BOOL)autosavesInPlace
{
return NO;
}
- (void)_resetTextView - (void)_resetTextView
{ {
textView.string = @""; textView.string = @"";
+1 -1
View File
@@ -8,7 +8,7 @@
"NSAppleEventsUsageDescription" = "Subler necesita acceso para agregar películas a iTunes o a TV"; "NSAppleEventsUsageDescription" = "Subler necesita acceso para agregar películas a iTunes o a TV";
/* Copyright (human-readable) */ /* Copyright (human-readable) */
"NSHumanReadableCopyright" = "Copyright © 2009-2024, Damiano Galassi"; "NSHumanReadableCopyright" = "Copyright © 2009-2025, Damiano Galassi";
/* (No Comment) */ /* (No Comment) */
"SRT Subtitles" = "Subtítulos SRT"; "SRT Subtitles" = "Subtítulos SRT";
+1 -1
View File
@@ -8,7 +8,7 @@
"NSAppleEventsUsageDescription" = "Subler nécessite l'accès pour ajouter des films à iTunes ou TV"; "NSAppleEventsUsageDescription" = "Subler nécessite l'accès pour ajouter des films à iTunes ou TV";
/* Copyright (human-readable) */ /* Copyright (human-readable) */
"NSHumanReadableCopyright" = "Droit d'auteur © 2009-2024, Damiano Galassi"; "NSHumanReadableCopyright" = "Droit d'auteur © 2009-2025, Damiano Galassi";
/* (No Comment) */ /* (No Comment) */
"SRT Subtitles" = "Sous-titres SRT"; "SRT Subtitles" = "Sous-titres SRT";
+1 -1
View File
@@ -8,7 +8,7 @@
"NSAppleEventsUsageDescription" = "Subler ha bisogno dell'autorizzazione per aggiungere i filmati ad iTunes o a TV"; "NSAppleEventsUsageDescription" = "Subler ha bisogno dell'autorizzazione per aggiungere i filmati ad iTunes o a TV";
/* Copyright (human-readable) */ /* Copyright (human-readable) */
"NSHumanReadableCopyright" = "Copyright © 2009-2024, Damiano Galassi"; "NSHumanReadableCopyright" = "Copyright © 2009-2025, Damiano Galassi";
/* (No Comment) */ /* (No Comment) */
"SRT Subtitles" = "Sottotitoli SRT"; "SRT Subtitles" = "Sottotitoli SRT";
+1 -1
View File
@@ -8,7 +8,7 @@
"NSAppleEventsUsageDescription" = "Subler 需要将电影添加到 iTunes 或“电视”的访问权限"; "NSAppleEventsUsageDescription" = "Subler 需要将电影添加到 iTunes 或“电视”的访问权限";
/* Copyright (human-readable) */ /* Copyright (human-readable) */
"NSHumanReadableCopyright" = "Copyright © 2009-2024, Damiano Galassi"; "NSHumanReadableCopyright" = "Copyright © 2009-2025, Damiano Galassi";
/* (No Comment) */ /* (No Comment) */
"SRT Subtitles" = "SRT 字幕"; "SRT Subtitles" = "SRT 字幕";