Skip to content

Releases

v2.0.1

Choose a tag to compare

@revam revam released this 27 Nov 20:11
  • Release tags are only stripped from a file name as whole words. Tags such as eng, spa, ger, ita and rip were also cut out of the middle of words, so "Tokyo Revengers" was read as "Tokyo Revers", "Meitantei" as "Mentei" and "HorribleSubs" as "Horribls". DTV, and DivX with its version number, are now read as tags too.
  • Built for the stable Shoko.Abstractions 6.0.0 of Shoko Server 6.0.0.

Requires Shoko Server with Shoko.Abstractions 6.0.0.

v2.0.0

Choose a tag to compare

@revam revam released this 20 Nov 01:24

Opens the Offline Importer to other plugins and to the API. It now ships with its own NuGet package, Shoko.Plugin.OfflineImporter.Abstractions, released alongside the plugin with the same version. It is a major version because of the changes listed under Changes below, which can affect existing file names and settings.

For plugins

  • IOfflineMatchingService runs your current parsing rules on a path and returns the ParsedFileResult. The result lists every ID tag it found in IDs, for any registered metadata source, with its type, depth and percentage range.
  • IOfflineReleaseGroupService gives access to the offline AniDB release group list. You can look a group up by ID or by name, getting one group or every group with that name. You can also list or fuzzy-search all groups, with the excluded groups and the preferred group for each shared name applied. It works even when the importer itself is set not to map groups. The group list is an unofficial copy of AniDB's groups, kept up to date by volunteers. It's refreshed daily, but it can miss new groups or lag behind AniDB.
  • IOfflineAutoMatchService decides whether a release is auto-matched, given any rules, video files and release.
  • The settings themselves, OfflineImporterConfiguration, live in the package under Shoko.Plugin.OfflineImporter.Abstractions.Configuration, with every rule type. Another plugin reads and changes the parsing rules, auto-match rules and release group settings by loading and saving them through the server's configuration service. Every save is validated, whoever makes it, and the importer picks it up at once.

API (admins only, under /api/plugin/offline/v1)

  • POST Match matches one path or a list of them without importing or saving anything. Paths can be absolute or relative to a managed folder.
  • ReleaseGroup lists and searches the groups, with paged lists. It also has ByName, {id} and Shared.
  • The settings, rules included, go through the server's own configuration routes.

Matching

  • ID tags in file and folder names accept typed prefixes for every source:

    • a, s or tv for a series;
    • m for a movie;
    • e for an episode.

    A part on a movie also works, such as m123'50/m123@50 for 0-50% of the movie with id 123.

  • A start with a trailing dash runs to the end: e5'50- is 50–100%.

  • For AniDB, a movie tag imports as the episode it is.

  • The importer now takes every AniDB episode tagged in the file name, not just the last value of the first tag.

  • Auto-match rules with episode ranges now match. Before this, the range check always failed.

  • Ranges are checked against episodes of any source, AniDB first. An AnyCredits range now matches credits.

  • The computed rule keys are no longer written to offline-importer.json.

Changes

  • A single percentage in a part now always means from the start: e5'50 is 0–50%, whatever comes before it in the tag. It used to count on from where the previous value's part ended, so a file named with several sizes in one tag now imports differently. Files already imported keep their ranges.
  • A custom parsing rule forces IDs of any source now, in ForcedIDs: a source and its IDs written as a tag without the brackets, such as anidb and a123,e456. Forced IDs come first in the parse result, marked as forced, and the importer prefers forced AniDB IDs over those tagged in the path. A rule's old forced AniDB anime and episode IDs are moved over when the settings load.
  • An AniDB group rule stores its group's name as AnidbGroupName. Existing rules show "" until they are edited.

Requires Shoko Server with Shoko.Abstractions 6.0.0-alpha.134.

v1.5.0

Choose a tag to compare

@revam revam released this 16 Nov 19:46

Tells Shoko Server when it can only link files by hand. Without any auto-match rules in its configuration, the server's own searches now pass it by and none of its jobs are queued, and its availability says why: "No auto-match rules are set up in the Offline Importer's configuration." Linking files by hand still asks it.

Requires Shoko Server with abstractions 6.0.0-alpha.132.

v1.4.0

Choose a tag to compare

@revam revam released this 16 Nov 12:15

Turns on Enable remote refresh and Map release group to AniDB by default, so a file whose anime isn't in the local cache yet gets it fetched from AniDB, and release groups are matched to their AniDB groups. Settings you saved before keep their values.

Requires Shoko Server with abstractions 6.0.0-alpha.114.

v1.3.1

Choose a tag to compare

@revam revam released this 25 Oct 20:30

Reads a version that stands on its own before the release group, such as …H264.v2-snk, which no longer hides the group either, and cleans up REPACK like PROPER. Built for the new server contract, with the plugin class now generated from the project.

Requires Shoko Server with abstractions 6.0.0-alpha.114.

v1.3.0

Choose a tag to compare

@revam revam released this 24 Oct 12:08

Adds release group exclusions and release group sources: an excluded group is never put on a release, and a source set for a group takes the place of the file name's guess. Auto-match group rules now match by group ID and ignore the case of names, and BluRay, Weekly and underscored sources are read from file names.

Requires Shoko Server with abstractions 6.0.0-alpha.113.

v1.2.1

Choose a tag to compare

@revam revam released this 16 Oct 06:54

Built for the new server contract. Imports behave as before.

Requires Shoko Server with abstractions 6.0.0-alpha.108.

v1.2.0

Choose a tag to compare

@revam revam released this 15 Oct 09:33

Its settings are now the plugin's own settings, so a client can open them from the plugin. Imports behave as before.

Requires Shoko Server with abstractions 6.0.0-alpha.107.

v1.1.4

Choose a tag to compare

@revam revam released this 13 Oct 23:51

Dropped the tagline from the thumbnail. Imports behave as before.

Requires Shoko Server with abstractions 6.0.0-alpha.104.

v1.1.3

Choose a tag to compare

@revam revam released this 13 Oct 20:03

Added a thumbnail and an icon for the plugin. Imports behave as before.

Requires Shoko Server with abstractions 6.0.0-alpha.104.