Skip to content

Commit

Permalink
Bugfix for chapters.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarex committed May 31, 2021
1 parent 502a45b commit 2c124ac
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 22 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Changelog
=======

### 1.5.3
- Bugfix for chapters.

### 1.5.2
- Bugfix on ratio.
- Bugfix of ffmpeg and metadata engine disabled.
Expand Down
32 changes: 16 additions & 16 deletions MediaInfo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11264,7 +11264,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -11281,7 +11281,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.5.2;
MARKETING_VERSION = 1.5.3;
OTHER_CODE_SIGN_FLAGS = "--timestamp";
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.MediaInfo;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -11299,7 +11299,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -11316,7 +11316,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.5.2;
MARKETING_VERSION = 1.5.3;
OTHER_CODE_SIGN_FLAGS = "--timestamp";
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.MediaInfo;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -11332,7 +11332,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_ASSET_PATHS = "MediaInfo\\ Finder\\ Extension/Assets_menu.xcassets";
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -11347,7 +11347,7 @@
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
MARKETING_VERSION = 1.5.2;
MARKETING_VERSION = 1.5.3;
OTHER_CODE_SIGN_FLAGS = "--timestamp";
PRODUCT_BUNDLE_IDENTIFIER = "org.sbarex.MediaInfo.Finder-Extension";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -11364,7 +11364,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_ASSET_PATHS = "MediaInfo\\ Finder\\ Extension/Assets_menu.xcassets";
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -11379,7 +11379,7 @@
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
MARKETING_VERSION = 1.5.2;
MARKETING_VERSION = 1.5.3;
OTHER_CODE_SIGN_FLAGS = "--timestamp";
PRODUCT_BUNDLE_IDENTIFIER = "org.sbarex.MediaInfo.Finder-Extension";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -11439,7 +11439,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
HEADER_SEARCH_PATHS = (
Expand All @@ -11459,7 +11459,7 @@
"$(BUILT_PRODUCTS_DIR)/libwebp",
"$(inherited)",
);
MARKETING_VERSION = 1.5.2;
MARKETING_VERSION = 1.5.3;
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.MediaInfoHelperXPC;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -11477,7 +11477,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
HEADER_SEARCH_PATHS = (
Expand All @@ -11497,7 +11497,7 @@
"$(BUILT_PRODUCTS_DIR)/libwebp",
"$(inherited)",
);
MARKETING_VERSION = 1.5.2;
MARKETING_VERSION = 1.5.3;
OTHER_CODE_SIGN_FLAGS = "--timestamp";
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.MediaInfoHelperXPC;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -11514,7 +11514,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
HEADER_SEARCH_PATHS = (
Expand All @@ -11534,7 +11534,7 @@
"$(BUILT_PRODUCTS_DIR)/libwebp",
"$(inherited)",
);
MARKETING_VERSION = 1.5.2;
MARKETING_VERSION = 1.5.3;
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.MediaInfoSettingsXPC;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -11550,7 +11550,7 @@
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
HEADER_SEARCH_PATHS = (
Expand All @@ -11570,7 +11570,7 @@
"$(BUILT_PRODUCTS_DIR)/libwebp",
"$(inherited)",
);
MARKETING_VERSION = 1.5.2;
MARKETING_VERSION = 1.5.3;
OTHER_CODE_SIGN_FLAGS = "--timestamp";
PRODUCT_BUNDLE_IDENTIFIER = org.sbarex.MediaInfoSettingsXPC;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
10 changes: 5 additions & 5 deletions MediaInfoHelperXPC/info/MediaInfoItems.swift
Original file line number Diff line number Diff line change
Expand Up @@ -749,20 +749,20 @@ extension ChaptersInfo {
let n = coder.decodeInteger(forKey: "chapters_count")
var chapters: [Chapter] = []
for i in 0 ..< n {
guard let c = coder.decodeObject(forKey: "chapter_\(i)") as? NSCoder else {
guard let d = coder.decodeObject(forKey: "chapter_\(i)") as? Data, let c = try? NSKeyedUnarchiver(forReadingFrom: d), let chapter = Chapter(coder: c) else {
continue
}
if let chapter = Chapter(coder: c) {
chapters.append(chapter)
}
chapters.append(chapter)
}
return chapters
}

func encodeChapters(in coder: NSCoder) {
coder.encode(self.chapters.count, forKey: "chapters_count")
for i in 0 ..< self.chapters.count {
coder.encode(self.chapters[i], forKey: "chapter_\(i)")
let c = NSKeyedArchiver(requiringSecureCoding: coder.requiresSecureCoding)
self.chapters[i].encode(with: c)
coder.encode(c.encodedData, forKey: "chapter_\(i)")
}
}

Expand Down
14 changes: 13 additions & 1 deletion docs/appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</item>
<item>
<title>1.5.2</title>
<pubDate>sab, 29 Mag 2021 23:43:12 +0100</pubDate>
<pubDate>lun, 31 Mag 2021 13:43:12 +0100</pubDate>
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
<enclosure url="https://github.com/sbarex/MediaInfo/releases/download/1.5.2/MediaInfo.zip" sparkle:version="15" sparkle:shortVersionString="1.5.2" type="application/octet-stream" sparkle:edSignature="HjgLy8ktr1dt35lQ/iUo7I6cJiZHjssa16u8Yb6Q67nT8mgeoEsdZqTxeXUNc1MD403aPv9TIhAnjpleejQbDg==" length="20824158"/>
<description><![CDATA[
Expand All @@ -56,5 +56,17 @@
]]>
</description>
</item>
<item>
<title>1.5.3</title>
<pubDate>lun, 31 Mag 2021 15:53:12 +0100</pubDate>
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
<enclosure url="https://github.com/sbarex/MediaInfo/releases/download/1.5.2/MediaInfo.zip" sparkle:version="16" sparkle:shortVersionString="1.5.3" type="application/octet-stream" sparkle:edSignature="hQXPkd55WWS3aqBxaY7VrNL7LmpoOXsz6o8LmQ3BxRi5H6feEsEAHpDO/ozCP3SHrgfR/YT+LeNb528KR+IWCw==" length="20825675"/>
<description><![CDATA[
<ul>
<li>Bugfix for chapters.</li>
</ul>
]]>
</description>
</item>
</channel>
</rss>

0 comments on commit 2c124ac

Please sign in to comment.