Jump to content

Recommended Posts

GrimReaper
Posted

Courtesy of @Happy2Play:

 

Here are the steps to creating a Collections library on a new install.

On the server dashboard at the bottom of the page there is a link to the API.  Note there are connections requirements of using localhost or a HTTPS connection.

image.png.7e723e40377515fc50882fa9caf3b69c.png

But there is a workaround with browser flags to allow your LAN connection from any address.

In Chrome/Edge entered IP or Hostname depending how you connect.  edge://flags / chrome://flags (but other browsers should have the same options)

image.png.c28ac14b226a7d10cbfbc8e6ca9e3db8.png

 

Once you have access to Swagger you will go to LibraryStructureService and expand

image.thumb.png.0ed4fc8bbc7d2f81f8ad0601b3c7d6bc.png

 

Then you will expand /Library/VirtualFolders and click "Try it out"

image.thumb.png.e143419a14ceef7898b6386eac02eea5.png

 

Then go to "AddVirtualFolder" box and clear it.

image.thumb.png.cab9d5a90ac38b84dc02b7c753021039.png

 

Now you will copy this library config and paste into "AddVirtualFolder" field.

    {
      "Name": "Collections",
      "Locations": [],
      "CollectionType": "boxsets",
      "LibraryOptions": {
        "EnableArchiveMediaFiles": false,
        "EnablePhotos": true,
        "EnableRealtimeMonitor": true,
        "EnableMarkerDetection": false,
        "EnableMarkerDetectionDuringLibraryScan": false,
        "IntroDetectionFingerprintLength": 10,
        "EnableChapterImageExtraction": false,
        "ExtractChapterImagesDuringLibraryScan": false,
        "DownloadImagesInAdvance": true,
        "CacheImages": false,
        "PathInfos": [],
        "IgnoreHiddenFiles": false,
        "IgnoreFileExtensions": [],
        "SaveLocalMetadata": true,
        "SaveMetadataHidden": false,
        "SaveLocalThumbnailSets": false,
        "ImportPlaylists": true,
        "EnableAutomaticSeriesGrouping": true,
        "ShareEmbeddedMusicAlbumImages": true,
        "EnableEmbeddedTitles": false,
        "EnableAudioResume": false,
        "AutoGenerateChapters": true,
        "AutomaticRefreshIntervalDays": 0,
        "PlaceholderMetadataRefreshIntervalDays": 0,
        "PreferredMetadataLanguage": "",
        "PreferredImageLanguage": "",
        "ContentType": "boxsets",
        "MetadataCountryCode": "",
        "MetadataSavers": [
          "Nfo"
        ],
        "DisabledLocalMetadataReaders": [],
        "LocalMetadataReaderOrder": [
          "Nfo"
        ],
        "DisabledLyricsFetchers": [],
        "SaveLyricsWithMedia": true,
        "LyricsDownloadMaxAgeDays": 180,
        "LyricsFetcherOrder": [],
        "LyricsDownloadLanguages": [],
        "DisabledSubtitleFetchers": [],
        "SubtitleFetcherOrder": [],
        "SkipSubtitlesIfEmbeddedSubtitlesPresent": false,
        "SkipSubtitlesIfAudioTrackMatches": false,
        "SubtitleDownloadLanguages": [],
        "SubtitleDownloadMaxAgeDays": 180,
        "RequirePerfectSubtitleMatch": true,
        "SaveSubtitlesWithMedia": true,
        "ForcedSubtitlesOnly": false,
        "HearingImpairedSubtitlesOnly": false,
        "TypeOptions": [
          {
            "Type": "BoxSet",
            "MetadataFetchers": [
              "TheMovieDb"
            ],
            "MetadataFetcherOrder": [
              "TheMovieDb"
            ],
            "ImageFetchers": [
              "FanArt",
              "TheMovieDb",
              "Dynamic Image Provider"
            ],
            "ImageFetcherOrder": [
              "FanArt",
              "TheMovieDb",
              "Dynamic Image Provider"
            ],
            "ImageOptions": [
              {
                "Type": "Primary",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Art",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "BoxRear",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Banner",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Box",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Disc",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Logo",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Menu",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Thumb",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Backdrop",
                "Limit": 1,
                "MinWidth": 1280
              }
            ]
          }
        ],
        "CollapseSingleItemFolders": true,
        "EnableAdultMetadata": false,
        "ImportCollections": false,
        "MinCollectionItems": 2,
        "MinResumePct": 5,
        "MaxResumePct": 90,
        "MinResumeDurationSeconds": 120,
        "ThumbnailImagesIntervalSeconds": -1,
        "SampleIgnoreSize": 314572800
      }
}

Now hit "Execute"

Now got to Library setup and verify setting are setup to your needs.

image.png.29a769969ece1169b41fdbcda76eb3a7.png

Note if you click "Execute" more than one you will create multiple Collections libraries.

 

Now for anyone wanting to remove this Virtual library or accidently recreated duplicate libraries here are the steps.

Go to LibraryStructureService then /Library/VirtualFolders/Query and click Try it out and Execute to get a list of your libraries to see their id/itemid near the bottom of each library.

Simplified to 1 library

{
  "Items": [
    {
      "Name": "Collections",
      "Locations": [],
      "CollectionType": "boxsets",
      "LibraryOptions": {
        "EnableArchiveMediaFiles": false,
        "EnablePhotos": true,
        "EnableRealtimeMonitor": false,
        "EnableMarkerDetection": false,
        "EnableMarkerDetectionDuringLibraryScan": false,
        "IntroDetectionFingerprintLength": 10,
        "EnableChapterImageExtraction": false,
        "ExtractChapterImagesDuringLibraryScan": false,
        "DownloadImagesInAdvance": true,
        "CacheImages": false,
        "PathInfos": [],
        "IgnoreHiddenFiles": false,
        "IgnoreFileExtensions": [],
        "SaveLocalMetadata": true,
        "SaveMetadataHidden": false,
        "SaveLocalThumbnailSets": false,
        "ImportPlaylists": true,
        "EnableAutomaticSeriesGrouping": true,
        "ShareEmbeddedMusicAlbumImages": true,
        "EnableEmbeddedTitles": false,
        "EnableAudioResume": false,
        "AutoGenerateChapters": true,
        "AutomaticRefreshIntervalDays": 0,
        "PlaceholderMetadataRefreshIntervalDays": 0,
        "PreferredMetadataLanguage": "",
        "PreferredImageLanguage": "",
        "ContentType": "boxsets",
        "MetadataCountryCode": "",
        "MetadataSavers": [
          "Nfo"
        ],
        "DisabledLocalMetadataReaders": [],
        "LocalMetadataReaderOrder": [
          "Nfo"
        ],
        "DisabledLyricsFetchers": [],
        "SaveLyricsWithMedia": true,
        "LyricsDownloadMaxAgeDays": 180,
        "LyricsFetcherOrder": [],
        "LyricsDownloadLanguages": [],
        "DisabledSubtitleFetchers": [],
        "SubtitleFetcherOrder": [],
        "SkipSubtitlesIfEmbeddedSubtitlesPresent": false,
        "SkipSubtitlesIfAudioTrackMatches": false,
        "SubtitleDownloadLanguages": [],
        "SubtitleDownloadMaxAgeDays": 180,
        "RequirePerfectSubtitleMatch": true,
        "SaveSubtitlesWithMedia": true,
        "ForcedSubtitlesOnly": false,
        "HearingImpairedSubtitlesOnly": false,
        "TypeOptions": [
          {
            "Type": "BoxSet",
            "MetadataFetchers": [
              "TheMovieDb"
            ],
            "MetadataFetcherOrder": [
              "TheMovieDb"
            ],
            "ImageFetchers": [
              "TheMovieDb",
              "Dynamic Image Provider",
              "FanArt"
            ],
            "ImageFetcherOrder": [
              "TheMovieDb",
              "Dynamic Image Provider",
              "FanArt"
            ],
            "ImageOptions": []
          }
        ],
        "CollapseSingleItemFolders": false,
        "EnableAdultMetadata": false,
        "ImportCollections": false,
        "MinCollectionItems": 2,
        "MinResumePct": 3,
        "MaxResumePct": 90,
        "MinResumeDurationSeconds": 120,
        "ThumbnailImagesIntervalSeconds": -1,
        "SampleIgnoreSize": 314572800
      },
      "ItemId": "126485",
      "Id": "126485",
      "Guid": "2faa6a99f9d24feabfeab2f97e3764d7",
      "PrimaryImageItemId": "126485"
    },
  "TotalRecordCount": 1
}

 

Note you can go to the browser and open each library to see each parentid in the URL as it is the same as id/itemid.

Then you would go to /Library/VirtualFolders/Delete and replace "string" with the library id you want to remove.

image.thumb.png.6456eda4edb910897e8c635551a74abb.png

 

  • Like 4
Posted

HI, we'll add this back in the next 4.8.X maintenance release. You'll need to create a new collection to get it to appear. Thanks guys.

  • Like 2
×
×
  • Create New...