krillplayer-plugin 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +24 -0
- package/README.md +85 -2
- package/bin/krillplayer-plugin.js +13 -0
- package/dist/cli.js +5607 -0
- package/dist/engine/engine.c +140 -0
- package/kernel/Sources/CQuickJS/include/kernel_qjs.h +47 -0
- package/kernel/Sources/CQuickJS/kernel_qjs.c +407 -0
- package/kernel/Sources/CQuickJS/quickjs_vendor.c +8 -0
- package/kernel/Sources/CQuickJS/vendor/LICENSE +24 -0
- package/kernel/Sources/CQuickJS/vendor/builtin-array-fromasync.h +121 -0
- package/kernel/Sources/CQuickJS/vendor/builtin-iterator-zip-keyed.h +313 -0
- package/kernel/Sources/CQuickJS/vendor/builtin-iterator-zip.h +321 -0
- package/kernel/Sources/CQuickJS/vendor/cutils.h +2374 -0
- package/kernel/Sources/CQuickJS/vendor/dtoa.c +1619 -0
- package/kernel/Sources/CQuickJS/vendor/dtoa.h +87 -0
- package/kernel/Sources/CQuickJS/vendor/libregexp-opcode.h +73 -0
- package/kernel/Sources/CQuickJS/vendor/libregexp.c +3530 -0
- package/kernel/Sources/CQuickJS/vendor/libregexp.h +106 -0
- package/kernel/Sources/CQuickJS/vendor/libunicode-table.h +5160 -0
- package/kernel/Sources/CQuickJS/vendor/libunicode.c +2074 -0
- package/kernel/Sources/CQuickJS/vendor/libunicode.h +172 -0
- package/kernel/Sources/CQuickJS/vendor/list.h +107 -0
- package/kernel/Sources/CQuickJS/vendor/quickjs-atom.h +279 -0
- package/kernel/Sources/CQuickJS/vendor/quickjs-c-atomics.h +54 -0
- package/kernel/Sources/CQuickJS/vendor/quickjs-opcode.h +377 -0
- package/kernel/Sources/CQuickJS/vendor/quickjs.c +65536 -0
- package/kernel/Sources/CQuickJS/vendor/quickjs.h +1529 -0
- package/kernel/Sources/Kernel/PluginPrelude.js +312 -0
- package/package.json +35 -4
- package/skill/krillplayer-plugin/SKILL.md +100 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/cases/list-next-page-passes-the-cursor-back.json +28 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/cases/list-popular-movies.json +48 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/cases/list-service-unavailable-fails.json +22 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/cases/list-top-rated-series.json +68 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/cases/list-trending-movies-by-default.json +71 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/cases/list-unknown-values-fall-back.json +26 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/cases/parameters.json +42 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/cases/search-blank.json +11 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/cases/search-movies-first.json +50 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/cases/search-series-after-the-movies.json +50 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/cases/search-series-next-page.json +25 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/manifest.ts +12 -0
- package/skill/krillplayer-plugin/assets/samples/catalog/plugin.ts +57 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/comments-first-segment.json +77 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/comments-last-segment-stops-at-the-end.json +77 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/comments-past-the-end-empty.json +14 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/comments-segment-covering-the-position.json +77 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/comments-unknown-match-not-found.json +13 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/match-by-filename-with-spaces.json +34 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/match-by-filename-without-a-work.json +28 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/match-episode-by-absolute-number.json +25 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/match-episode-by-season-and-number.json +32 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/match-episode-not-in-the-catalog-empty.json +20 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/match-movie-by-tmdb-gives-both-cuts.json +34 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/match-nothing-to-go-on-empty.json +13 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/cases/match-unknown-work-empty.json +18 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/manifest.ts +12 -0
- package/skill/krillplayer-plugin/assets/samples/danmaku-tool/plugin.ts +72 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/folder-gone-ended.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/folder-second-page-by-cursor.json +39 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/folder-skips-files-that-are-not-media.json +36 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/folder-with-subfolder-first-page.json +52 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-empty-folder.json +11 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-folder-gone-not-found.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-folder-lists-subfolders-and-media.json +28 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-folder-second-page.json +22 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-folder-skips-subtitles.json +21 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-root-first-page.json +25 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/library-root-second-page.json +22 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/list-cursor-not-a-number-starts-over.json +30 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/list-root-first-page.json +29 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/list-root-second-page.json +25 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/nested-folder-carries-ancestors.json +25 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/play-file-at-the-root.json +22 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/play-file-encodes-each-path-segment.json +22 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/cases/play-file-gone-not-found.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/manifest.ts +12 -0
- package/skill/krillplayer-plugin/assets/samples/file-share/plugin.ts +192 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/list-first-page.json +247 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/list-missing-docs.json +26 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/list-not-json.json +26 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/list-refused.json +26 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/list-second-page.json +248 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/list-server-error.json +26 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/list-skips-incomplete-items.json +225 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/play-about-bananas.json +45 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/play-http-404.json +26 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/play-no-video-files.json +26 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/play-unknown-id.json +26 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/search-bad-request.json +26 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/search-bananas.json +247 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/search-blank-query.json +11 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/cases/search-rate-limited.json +26 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/manifest.ts +14 -0
- package/skill/krillplayer-plugin/assets/samples/internet-archive/plugin.ts +85 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/channel-creator-next-page.json +99 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/channel-creator-off-air-has-no-live.json +28 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/channel-creator-on-air.json +92 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/channel-creator-replays-tab.json +69 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/channel-unknown-ended.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/collection-playlist-around-a-video.json +56 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/collection-playlist.json +78 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-connect.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-decode.json +19 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-content-rejected.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-login-expired.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-muted.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-not-logged-in.json +14 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-other.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-rate-limited.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-sent.json +28 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/list-live.json +33 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/list-videos-first-page.json +59 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/list-videos-next-page.json +64 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/parameters.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/play-live.json +22 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/play-off-air-not-started.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/play-replay.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/play-upcoming-not-started.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/play-video.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/resolve-channel-link.json +28 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/resolve-live-link.json +29 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/resolve-other-site-unclaimed.json +8 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/resolve-playlist-link.json +27 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/resolve-removed-video-unclaimed.json +8 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/resolve-video-link.json +34 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/search-creator-live-playlist-and-videos.json +115 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/search-off-air-room.json +47 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/status-live-id-comes-from-the-plugin.json +28 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/manifest.ts +13 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/plugin.ts +162 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/collection-box-set.json +80 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/collection-empty-subfolder.json +25 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/collection-folder-has-a-subfolder-and-files.json +53 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/collection-season-around-a-removed-episode-ended.json +15 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/collection-season-around-an-episode.json +67 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/collection-season-episodes.json +89 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/collection-series-lists-seasons.json +79 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/collection-series-next-page.json +54 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/collection-unknown-ended.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-changes-everything-first-page.json +74 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-changes-everything-last-page.json +86 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-changes-nothing-new.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-changes-since-a-token-with-a-removal.json +88 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-ids-first-page.json +15 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/library-ids-last-page.json +14 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/list-files.json +22 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/list-movies-first-page.json +69 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/list-movies-next-page.json +30 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/list-shows.json +27 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/parameters.json +27 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/play-episode.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/play-file-without-duration.json +22 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/play-movie-version.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/play-movie.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/play-unknown-ended.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/search-across-kinds.json +81 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/cases/search-blank.json +11 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/manifest.ts +12 -0
- package/skill/krillplayer-plugin/assets/samples/media-server/plugin.ts +167 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/album-compilation-has-no-album-artist.json +63 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/album-songs-in-disc-order.json +117 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/artist-lists-albums-and-top-songs.json +103 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/artist-unknown-not-found.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/list-artists.json +32 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/list-newest-albums-first-page.json +51 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/list-past-the-end.json +13 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/list-playlists.json +22 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/list-stations-are-channels.json +28 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/list-unknown-section-not-found.json +13 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/play-song.json +24 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/play-station.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/play-unknown-not-found.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/playlist-first-page.json +67 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/playlist-next-page.json +48 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/cases/sections-lists-every-kind.json +28 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/manifest.ts +12 -0
- package/skill/krillplayer-plugin/assets/samples/music-library/plugin.ts +120 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/folder-gone-not-found.json +60 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/folder-nested-carries-ancestors.json +74 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/folder-second-page-by-cursor.json +88 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/folder-skips-subtitles-and-system-files.json +101 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/folder-without-access-asks-to-log-in.json +60 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-empty-folder.json +60 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-folder-gives-size-and-modified-time.json +78 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-folder-gone-not-found.json +60 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-folder-second-page.json +71 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-read-a-range.json +62 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-read-an-info-file.json +62 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-read-file-gone-not-found.json +62 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-root.json +84 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/library-source-offline-retryable.json +61 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/list-root-first-page.json +71 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/list-root-next-page-by-the-kernel-cursor.json +83 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/list-root-page-of-only-other-files-still-has-next.json +63 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/list-root.json +96 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/list-source-offline-retryable.json +61 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/list-wrong-account-asks-to-log-in.json +61 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/play-a-folder-not-found.json +61 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/play-audio-takes-no-subtitles.json +71 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/play-file-at-the-root.json +71 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/play-file-gone-not-found.json +60 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/play-finds-subtitles-across-pages.json +88 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/play-lists-subtitles-next-to-the-video.json +87 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/play-similar-name-takes-only-its-own-subtitles.json +80 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/cases/play-without-access-asks-to-log-in.json +60 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/manifest.ts +13 -0
- package/skill/krillplayer-plugin/assets/samples/network-share/plugin.ts +122 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/channel-around-a-removed-episode-ended.json +15 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/channel-around-an-episode.json +62 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/channel-episodic-newest-first.json +57 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/channel-episodic-next-page.json +42 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/channel-serial-oldest-first.json +57 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/channel-unknown-ended.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/list-first-page.json +32 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/list-past-the-end.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/play-episode.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/play-removed-ended.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/search-next-page.json +47 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/cases/search-shows-and-episodes.json +41 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/manifest.ts +12 -0
- package/skill/krillplayer-plugin/assets/samples/podcast/plugin.ts +77 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/cases/find-episode-by-absolute-number.json +24 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/cases/find-episode-by-season-and-number.json +26 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/cases/find-episode-it-does-not-have.json +17 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/cases/find-movie-by-imdb-only.json +39 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/cases/find-movie-by-tmdb.json +40 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/cases/find-movie-ids-win-over-the-title.json +16 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/cases/find-movie-title-in-another-year-has-none.json +14 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/cases/find-movie-without-ids-by-title-and-year.json +25 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/cases/play-episode-version.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/cases/play-movie-version.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/cases/play-unknown-ended.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/manifest.ts +12 -0
- package/skill/krillplayer-plugin/assets/samples/resource-finder/plugin.ts +70 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/fetch-after-login-gives-the-text.json +16 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/fetch-gives-the-text.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/fetch-login-required-without-credentials.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/fetch-unknown-track-not-found.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/login-methods-fields.json +24 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/search-by-filename-without-a-work.json +34 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/search-by-hash-gives-only-that-file.json +29 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/search-episode-by-season-and-number.json +32 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/search-episode-not-in-the-catalog-empty.json +22 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/search-hash-wins-over-a-misleading-filename.json +27 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/search-language-by-primary-subtag.json +24 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/search-movie-by-tmdb-in-language-order.json +51 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/search-nothing-to-go-on-empty.json +13 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/search-unknown-hash-falls-back-to-the-work.json +53 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/search-unknown-work-empty.json +20 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/cases/search-unwanted-language-empty.json +21 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/manifest.ts +12 -0
- package/skill/krillplayer-plugin/assets/samples/subtitle-tool/plugin.ts +104 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/channel-radio-is-audio.json +33 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/channel-station.json +33 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/channel-unknown-ended.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/list-all-stations.json +81 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/list-group.json +37 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/parameters.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/play-catch-up-is-on-demand.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/play-future-programme-has-no-catch-up.json +12 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/play-live-two-lines.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/play-radio.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/schedule-future-window-has-no-items.json +24 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/schedule-past-programmes-carry-catch-up.json +58 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/schedule-several-stations-in-one-call.json +127 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/schedule-window-without-programmes.json +15 -0
- package/skill/krillplayer-plugin/assets/samples/tv/cases/search-station.json +35 -0
- package/skill/krillplayer-plugin/assets/samples/tv/manifest.ts +12 -0
- package/skill/krillplayer-plugin/assets/samples/tv/plugin.ts +81 -0
- package/skill/krillplayer-plugin/references/cases.md +86 -0
- package/skill/krillplayer-plugin/references/choosing-a-kind.md +69 -0
- package/skill/krillplayer-plugin/references/contract.d.ts +1486 -0
- package/skill/krillplayer-plugin/references/errors-and-fixes.md +117 -0
- package/templates/apple-hls/cases/list-filtered.json +24 -0
- package/templates/apple-hls/cases/list-first-page.json +35 -0
- package/templates/apple-hls/cases/list-last-page.json +25 -0
- package/templates/apple-hls/cases/parameters.json +31 -0
- package/templates/apple-hls/cases/play-bipbop.json +23 -0
- package/templates/apple-hls/cases/play-unknown.json +12 -0
- package/templates/apple-hls/cases/search-blank-query.json +11 -0
- package/templates/apple-hls/cases/search-no-match.json +11 -0
- package/templates/apple-hls/cases/search-title-ignores-case.json +22 -0
- package/templates/apple-hls/manifest.ts +12 -0
- package/templates/apple-hls/plugin.ts +77 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "play",
|
|
3
|
+
"call": "start",
|
|
4
|
+
"args": [
|
|
5
|
+
"电影/Big Buck Bunny (2008).mkv"
|
|
6
|
+
],
|
|
7
|
+
"exchanges": [],
|
|
8
|
+
"output": {
|
|
9
|
+
"timing": "onDemand",
|
|
10
|
+
"lines": [
|
|
11
|
+
{
|
|
12
|
+
"name": "直连",
|
|
13
|
+
"streams": [
|
|
14
|
+
{
|
|
15
|
+
"quality": "原画",
|
|
16
|
+
"url": "https://dav.example/share/%E7%94%B5%E5%BD%B1/Big%20Buck%20Bunny%20(2008).mkv"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PluginManifest } from "krillplayer-plugin";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
id: "asia.kami.krillplayer.sample.file-share",
|
|
5
|
+
sourceId: "sample.file-share",
|
|
6
|
+
name: "样例:file-share",
|
|
7
|
+
author: "KrillPlayer",
|
|
8
|
+
version: "1.0.0",
|
|
9
|
+
interfaceLevel: 0,
|
|
10
|
+
contractRevision: 2,
|
|
11
|
+
hosts: [],
|
|
12
|
+
} satisfies Omit<PluginManifest, "capabilities">;
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
// 样例:文件类来源(WebDAV 这一类,内核的 SMB、本地文件也是同样的形状)。数据写死在这里,不出网;主机名是不存在的 .example。
|
|
2
|
+
// 看点:目录是合集 folder、媒体文件是条目 file,照来源里原样的层级列出,不认成电影或剧集(那是内核之后的事);
|
|
3
|
+
// id 用相对来源根的路径,层级靠 ancestors 与 folder 字段给,内核不解析 id;不是音视频的文件不列;
|
|
4
|
+
// 目录的应答是一份 WebDAV 的 PROPFIND(207 Multi-Status),用 krillplayer.formats.xml 解,按命名空间与本地名找元素。
|
|
5
|
+
// 资料库槽位把同一份目录给内核扫描进索引:一次一层,带名字、大小与修改时间,目录不在了抛 notFound。
|
|
6
|
+
import type {
|
|
7
|
+
At, BrowseSlot, CollectionRef, Entry, File, Folder, LibraryEntry, LibrarySlot, Paged, PlaySlot, XMLNode,
|
|
8
|
+
} from "krillplayer-plugin";
|
|
9
|
+
|
|
10
|
+
const SERVER = "https://dav.example/share/";
|
|
11
|
+
const DAV = "DAV:";
|
|
12
|
+
|
|
13
|
+
// 每个目录的 PROPFIND(Depth: 1)应答:第一项是目录自己,其余是它下面的一层。
|
|
14
|
+
const LISTINGS: Record<string, string> = {
|
|
15
|
+
"": multistatus("/share/", [
|
|
16
|
+
folderXML("/share/%E7%94%B5%E5%BD%B1/"),
|
|
17
|
+
folderXML("/share/Home%20Videos/"),
|
|
18
|
+
fileXML("/share/trailer.mp4", "video/mp4", 52_428_800),
|
|
19
|
+
fileXML("/share/readme.txt", "text/plain", 120),
|
|
20
|
+
]),
|
|
21
|
+
"电影": multistatus("/share/%E7%94%B5%E5%BD%B1/", [
|
|
22
|
+
fileXML("/share/%E7%94%B5%E5%BD%B1/Big%20Buck%20Bunny%20(2008).mkv", "video/x-matroska", 734_003_200),
|
|
23
|
+
fileXML("/share/%E7%94%B5%E5%BD%B1/Big%20Buck%20Bunny%20(2008).srt", "application/x-subrip", 40_960),
|
|
24
|
+
]),
|
|
25
|
+
"Home Videos": multistatus("/share/Home%20Videos/", [
|
|
26
|
+
folderXML("/share/Home%20Videos/2025/"),
|
|
27
|
+
fileXML("/share/Home%20Videos/beach.MOV", "", 1_073_741_824),
|
|
28
|
+
fileXML("/share/Home%20Videos/interview.m4a", "audio/mp4", 8_388_608),
|
|
29
|
+
]),
|
|
30
|
+
"Home Videos/2025": multistatus("/share/Home%20Videos/2025/", []),
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
function multistatus(self: string, responses: string[]): string {
|
|
34
|
+
return `<?xml version="1.0" encoding="utf-8"?><d:multistatus xmlns:d="DAV:">${folderXML(self)}${responses.join("")}</d:multistatus>`;
|
|
35
|
+
}
|
|
36
|
+
function folderXML(href: string): string {
|
|
37
|
+
return `<d:response><d:href>${href}</d:href><d:propstat><d:prop><d:resourcetype><d:collection/></d:resourcetype>`
|
|
38
|
+
+ `<d:getlastmodified>Fri, 27 Nov 2026 03:00:00 GMT</d:getlastmodified></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response>`;
|
|
39
|
+
}
|
|
40
|
+
function fileXML(href: string, type: string, size: number): string {
|
|
41
|
+
return `<d:response><d:href>${href}</d:href><d:propstat><d:prop><d:resourcetype/><d:getcontenttype>${type}</d:getcontenttype>`
|
|
42
|
+
+ `<d:getcontentlength>${size}</d:getcontentlength><d:getlastmodified>Fri, 27 Nov 2026 03:00:00 GMT</d:getlastmodified></d:prop>`
|
|
43
|
+
+ `<d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response>`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// ---- 解 PROPFIND
|
|
47
|
+
|
|
48
|
+
const VIDEO = new Set(["mp4", "m4v", "mov", "mkv", "avi", "ts", "m2ts", "webm", "flv", "wmv"]);
|
|
49
|
+
const AUDIO = new Set(["mp3", "m4a", "aac", "flac", "wav", "ogg", "opus"]);
|
|
50
|
+
|
|
51
|
+
const children = (node: XMLNode, name: string) => node.children.filter((child) => child.namespace === DAV && child.name === name);
|
|
52
|
+
const first = (node: XMLNode, name: string) => children(node, name)[0];
|
|
53
|
+
|
|
54
|
+
interface Resource { path: string; name: string; directory: boolean; size?: number; modified?: number; type?: string }
|
|
55
|
+
|
|
56
|
+
// href 是服务器上的绝对路径,也可能是完整地址:去掉协议与主机,再逐段解码。解不开的 % 原样留着。
|
|
57
|
+
function pathOf(href: string): string {
|
|
58
|
+
const path = href.replace(/^[A-Za-z][A-Za-z0-9+.-]*:\/\/[^/]*/, "");
|
|
59
|
+
try {
|
|
60
|
+
return decodeURIComponent(path);
|
|
61
|
+
} catch {
|
|
62
|
+
return path;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// 每一项去掉来源根的那一段,剩下的就是 id。
|
|
67
|
+
function resources(xml: XMLNode, root: string): Resource[] {
|
|
68
|
+
return children(xml, "response").flatMap((response): Resource[] => {
|
|
69
|
+
const href = pathOf(first(response, "href")?.text.trim() ?? "");
|
|
70
|
+
if (!href.startsWith(root)) return [];
|
|
71
|
+
const path = href.slice(root.length).replace(/\/+$/, "");
|
|
72
|
+
// 只取状态是 200 的那组属性:服务器给不出的属性在另一组 404 里。
|
|
73
|
+
const prop = children(response, "propstat").find((stat) => / 200 /.test(first(stat, "status")?.text ?? ""));
|
|
74
|
+
const props = prop === undefined ? undefined : first(prop, "prop");
|
|
75
|
+
const value = (name: string) => (props === undefined ? undefined : first(props, name)?.text.trim() || undefined);
|
|
76
|
+
const size = Number(value("getcontentlength"));
|
|
77
|
+
const modified = Date.parse(value("getlastmodified") ?? "");
|
|
78
|
+
return [{
|
|
79
|
+
path,
|
|
80
|
+
name: path.slice(path.lastIndexOf("/") + 1),
|
|
81
|
+
directory: props !== undefined && first(props, "resourcetype")?.children.some((child) => child.namespace === DAV && child.name === "collection") === true,
|
|
82
|
+
...(Number.isFinite(size) ? { size } : {}),
|
|
83
|
+
...(Number.isFinite(modified) ? { modified: modified / 1000 } : {}),
|
|
84
|
+
type: value("getcontenttype"),
|
|
85
|
+
}];
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// 扩展名优先,其次 Content-Type:很多服务器把 .mkv 报成 application/octet-stream。认不出的不是媒体,不列。
|
|
90
|
+
function mediaOf(resource: Resource): "video" | "audio" | undefined {
|
|
91
|
+
const extension = resource.name.includes(".") ? resource.name.slice(resource.name.lastIndexOf(".") + 1).toLowerCase() : "";
|
|
92
|
+
if (VIDEO.has(extension)) return "video";
|
|
93
|
+
if (AUDIO.has(extension)) return "audio";
|
|
94
|
+
if (resource.type?.startsWith("video/")) return "video";
|
|
95
|
+
if (resource.type?.startsWith("audio/")) return "audio";
|
|
96
|
+
return undefined;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// 上级链条:从最上层到上一层,内核画面包屑不用再问。
|
|
100
|
+
function ancestorsOf(path: string): CollectionRef[] {
|
|
101
|
+
const parts = path === "" ? [] : path.split("/");
|
|
102
|
+
return parts.slice(0, -1).map((title, index) => ({ id: parts.slice(0, index + 1).join("/"), kind: "folder", title }));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function folderOf(path: string): Folder {
|
|
106
|
+
const ancestors = ancestorsOf(path);
|
|
107
|
+
return { kind: "folder", id: path, title: path.slice(path.lastIndexOf("/") + 1), ...(ancestors.length > 0 ? { ancestors } : {}) };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
type Host = Parameters<BrowseSlot["list"]>[0];
|
|
111
|
+
|
|
112
|
+
// 一个目录下的一层,目录在前,再按名字:来源里原样的目录,不按时间或类型重排。没有这个目录时返回 undefined。
|
|
113
|
+
// 名字按码位比,两个宿主排得一样;真插件可以换成更贴近人的排法。
|
|
114
|
+
function listingOf(krillplayer: Host, path: string): Resource[] | undefined {
|
|
115
|
+
const listing = LISTINGS[path];
|
|
116
|
+
if (listing === undefined) return undefined;
|
|
117
|
+
const found = resources(krillplayer.formats.xml(listing), "/share/")
|
|
118
|
+
.filter((resource) => resource.path !== path && resource.name !== "" && !resource.name.startsWith("."));
|
|
119
|
+
found.sort((a, b) => Number(b.directory) - Number(a.directory) || (a.name < b.name ? -1 : a.name > b.name ? 1 : 0));
|
|
120
|
+
return found;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function entriesOf(krillplayer: Host, path: string): Entry[] {
|
|
124
|
+
const found = listingOf(krillplayer, path);
|
|
125
|
+
if (found === undefined) throw krillplayer.error("ended", "这个文件夹已不在了");
|
|
126
|
+
const parent: CollectionRef | undefined = path === "" ? undefined : { id: path, kind: "folder", title: path.slice(path.lastIndexOf("/") + 1) };
|
|
127
|
+
return found.flatMap((resource): Entry[] => {
|
|
128
|
+
if (resource.directory) return [{ type: "collection", collection: folderOf(resource.path) }];
|
|
129
|
+
const media = mediaOf(resource);
|
|
130
|
+
if (media === undefined) return [];
|
|
131
|
+
const file: File = {
|
|
132
|
+
kind: "file", id: resource.path, title: resource.name, media, filename: resource.name,
|
|
133
|
+
...(parent === undefined ? {} : { folder: parent }),
|
|
134
|
+
...(resource.size === undefined ? {} : { size: resource.size }),
|
|
135
|
+
...(resource.modified === undefined ? {} : { modified: resource.modified }),
|
|
136
|
+
};
|
|
137
|
+
return [{ type: "item", item: file }];
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const PAGE_SIZE = 2;
|
|
142
|
+
|
|
143
|
+
// 一个目录的 PROPFIND 一次给全;翻页只是把它切开,游标是下一页第一项的位置。
|
|
144
|
+
function page<T>(entries: T[], cursor: string | undefined): Paged<T> {
|
|
145
|
+
const start = Number(cursor ?? "0") || 0;
|
|
146
|
+
const end = start + PAGE_SIZE;
|
|
147
|
+
return { entries: entries.slice(start, end), ...(end < entries.length ? { next: String(end) } : {}) };
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export const browse = {
|
|
151
|
+
// 来源页就是来源的根目录。
|
|
152
|
+
async list(krillplayer, _values, cursor) {
|
|
153
|
+
return page(entriesOf(krillplayer, ""), cursor);
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
async collection(krillplayer, collectionId, at?: At) {
|
|
157
|
+
return { collection: folderOf(collectionId), entries: page(entriesOf(krillplayer, collectionId), at?.cursor) };
|
|
158
|
+
},
|
|
159
|
+
} satisfies BrowseSlot;
|
|
160
|
+
|
|
161
|
+
// 资料库:一次列一层,内核自己往下走。文件的 itemId 就是 browse 给的那个 File 的 id(路径),不是音视频的文件不列。
|
|
162
|
+
export const library = {
|
|
163
|
+
async list(krillplayer, dir, cursor) {
|
|
164
|
+
const found = listingOf(krillplayer, dir);
|
|
165
|
+
if (found === undefined) throw krillplayer.error("notFound", "这个文件夹已不在了");
|
|
166
|
+
const entries = found.flatMap((resource): LibraryEntry[] => {
|
|
167
|
+
const times = resource.modified === undefined ? {} : { modified: resource.modified };
|
|
168
|
+
if (resource.directory) return [{ type: "directory", path: resource.path, name: resource.name, ...times }];
|
|
169
|
+
const media = mediaOf(resource);
|
|
170
|
+
if (media === undefined) return [];
|
|
171
|
+
return [{
|
|
172
|
+
type: "file", path: resource.path, name: resource.name, itemId: resource.path, media,
|
|
173
|
+
...(resource.size === undefined ? {} : { size: resource.size }), ...times,
|
|
174
|
+
}];
|
|
175
|
+
});
|
|
176
|
+
return page(entries, cursor);
|
|
177
|
+
},
|
|
178
|
+
} satisfies LibrarySlot;
|
|
179
|
+
|
|
180
|
+
// 文件按路径起播:地址是来源根加上逐段编码的路径。文件不连播,也没有别的线路。
|
|
181
|
+
// 文件不在了抛 notFound:内核给出「文件不在了」的说明,并重扫它所在的目录。
|
|
182
|
+
export const play = {
|
|
183
|
+
async start(krillplayer, itemId) {
|
|
184
|
+
const folder = itemId.includes("/") ? itemId.slice(0, itemId.lastIndexOf("/")) : "";
|
|
185
|
+
const known = entriesOf(krillplayer, folder).some((entry) => entry.type === "item" && entry.item.id === itemId);
|
|
186
|
+
if (!known) throw krillplayer.error("notFound", "这个文件已不在了");
|
|
187
|
+
return {
|
|
188
|
+
timing: "onDemand",
|
|
189
|
+
lines: [{ name: "直连", streams: [{ quality: "原画", url: SERVER + itemId.split("/").map(encodeURIComponent).join("/") }] }],
|
|
190
|
+
};
|
|
191
|
+
},
|
|
192
|
+
} satisfies PlaySlot;
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "browse",
|
|
3
|
+
"call": "list",
|
|
4
|
+
"args": [
|
|
5
|
+
{}
|
|
6
|
+
],
|
|
7
|
+
"exchanges": [
|
|
8
|
+
{
|
|
9
|
+
"request": {
|
|
10
|
+
"method": "GET",
|
|
11
|
+
"url": "https://archive.org/advancedsearch.php?q=collection%3Aprelinger%20AND%20mediatype%3Amovies&fl%5B%5D=identifier&fl%5B%5D=title&fl%5B%5D=publicdate&sort%5B%5D=downloads+desc&rows=20&page=1&output=json"
|
|
12
|
+
},
|
|
13
|
+
"response": {
|
|
14
|
+
"status": 200,
|
|
15
|
+
"headers": {
|
|
16
|
+
"content-type": "application/json"
|
|
17
|
+
},
|
|
18
|
+
"body": "{\"response\":{\"numFound\":10573,\"start\":0,\"docs\":[{\"identifier\":\"AboutBan1935\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"About Bananas\"},{\"identifier\":\"Doctorin1946\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Doctor in Industry (Part I)\"},{\"identifier\":\"HealthYo1953\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Health: Your Posture\"},{\"identifier\":\"FromtheG1954\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"From the Ground Up\"},{\"identifier\":\"Sleepfor1950\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Sleep for Health\"},{\"identifier\":\"JoanAvoi1947\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Joan Avoids a Cold\"},{\"identifier\":\"EatforHe1954\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Eat for Health\"},{\"identifier\":\"breath_takers_2\",\"publicdate\":\"2008-12-09T05:14:02Z\",\"title\":\"Breath-Takers, 2\"},{\"identifier\":\"babies_and_breadwinners_2\",\"publicdate\":\"2003-05-16T11:35:03Z\",\"title\":\"Babies and Breadwinners (Part II)\"},{\"identifier\":\"right_to_health_1\",\"publicdate\":\"2003-05-27T17:27:51Z\",\"title\":\"Right to Health, A (Part I)\"},{\"identifier\":\"Automoti1940\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Automotive Service\"},{\"identifier\":\"Careofth1949\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Care of the Skin\"},{\"identifier\":\"Sniffles1955\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Sniffles and Sneezes\"},{\"identifier\":\"ParkCons1938\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Park Conscious\"},{\"identifier\":\"Personal1950\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Personal Hygiene (Part I)\"},{\"identifier\":\"122Eyes1950\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"122 Eyes\"},{\"identifier\":\"Usingthe1947\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Using the Bank\"},{\"identifier\":\"bacteria_friend_and_foe\",\"publicdate\":\"2003-05-16T11:35:37Z\",\"title\":\"Bacteria: Friend and Foe\"},{\"identifier\":\"HaveITol1958\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Have I Told You Lately That I Love You?\"},{\"identifier\":\"CaseofSp1940\",\"publicdate\":\"2002-07-16T00:00:00Z\",\"title\":\"Case of Spring Fever, A\"}]}}"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"output": {
|
|
23
|
+
"entries": [
|
|
24
|
+
{
|
|
25
|
+
"type": "item",
|
|
26
|
+
"item": {
|
|
27
|
+
"kind": "onDemand",
|
|
28
|
+
"id": "AboutBan1935",
|
|
29
|
+
"title": "About Bananas",
|
|
30
|
+
"media": "video",
|
|
31
|
+
"image": "https://archive.org/services/img/AboutBan1935",
|
|
32
|
+
"published": 1026777600
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "item",
|
|
37
|
+
"item": {
|
|
38
|
+
"kind": "onDemand",
|
|
39
|
+
"id": "Doctorin1946",
|
|
40
|
+
"title": "Doctor in Industry (Part I)",
|
|
41
|
+
"media": "video",
|
|
42
|
+
"image": "https://archive.org/services/img/Doctorin1946",
|
|
43
|
+
"published": 1026777600
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "item",
|
|
48
|
+
"item": {
|
|
49
|
+
"kind": "onDemand",
|
|
50
|
+
"id": "HealthYo1953",
|
|
51
|
+
"title": "Health: Your Posture",
|
|
52
|
+
"media": "video",
|
|
53
|
+
"image": "https://archive.org/services/img/HealthYo1953",
|
|
54
|
+
"published": 1026777600
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "item",
|
|
59
|
+
"item": {
|
|
60
|
+
"kind": "onDemand",
|
|
61
|
+
"id": "FromtheG1954",
|
|
62
|
+
"title": "From the Ground Up",
|
|
63
|
+
"media": "video",
|
|
64
|
+
"image": "https://archive.org/services/img/FromtheG1954",
|
|
65
|
+
"published": 1026777600
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "item",
|
|
70
|
+
"item": {
|
|
71
|
+
"kind": "onDemand",
|
|
72
|
+
"id": "Sleepfor1950",
|
|
73
|
+
"title": "Sleep for Health",
|
|
74
|
+
"media": "video",
|
|
75
|
+
"image": "https://archive.org/services/img/Sleepfor1950",
|
|
76
|
+
"published": 1026777600
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "item",
|
|
81
|
+
"item": {
|
|
82
|
+
"kind": "onDemand",
|
|
83
|
+
"id": "JoanAvoi1947",
|
|
84
|
+
"title": "Joan Avoids a Cold",
|
|
85
|
+
"media": "video",
|
|
86
|
+
"image": "https://archive.org/services/img/JoanAvoi1947",
|
|
87
|
+
"published": 1026777600
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "item",
|
|
92
|
+
"item": {
|
|
93
|
+
"kind": "onDemand",
|
|
94
|
+
"id": "EatforHe1954",
|
|
95
|
+
"title": "Eat for Health",
|
|
96
|
+
"media": "video",
|
|
97
|
+
"image": "https://archive.org/services/img/EatforHe1954",
|
|
98
|
+
"published": 1026777600
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "item",
|
|
103
|
+
"item": {
|
|
104
|
+
"kind": "onDemand",
|
|
105
|
+
"id": "breath_takers_2",
|
|
106
|
+
"title": "Breath-Takers, 2",
|
|
107
|
+
"media": "video",
|
|
108
|
+
"image": "https://archive.org/services/img/breath_takers_2",
|
|
109
|
+
"published": 1228799642
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "item",
|
|
114
|
+
"item": {
|
|
115
|
+
"kind": "onDemand",
|
|
116
|
+
"id": "babies_and_breadwinners_2",
|
|
117
|
+
"title": "Babies and Breadwinners (Part II)",
|
|
118
|
+
"media": "video",
|
|
119
|
+
"image": "https://archive.org/services/img/babies_and_breadwinners_2",
|
|
120
|
+
"published": 1053084903
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "item",
|
|
125
|
+
"item": {
|
|
126
|
+
"kind": "onDemand",
|
|
127
|
+
"id": "right_to_health_1",
|
|
128
|
+
"title": "Right to Health, A (Part I)",
|
|
129
|
+
"media": "video",
|
|
130
|
+
"image": "https://archive.org/services/img/right_to_health_1",
|
|
131
|
+
"published": 1054056471
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"type": "item",
|
|
136
|
+
"item": {
|
|
137
|
+
"kind": "onDemand",
|
|
138
|
+
"id": "Automoti1940",
|
|
139
|
+
"title": "Automotive Service",
|
|
140
|
+
"media": "video",
|
|
141
|
+
"image": "https://archive.org/services/img/Automoti1940",
|
|
142
|
+
"published": 1026777600
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "item",
|
|
147
|
+
"item": {
|
|
148
|
+
"kind": "onDemand",
|
|
149
|
+
"id": "Careofth1949",
|
|
150
|
+
"title": "Care of the Skin",
|
|
151
|
+
"media": "video",
|
|
152
|
+
"image": "https://archive.org/services/img/Careofth1949",
|
|
153
|
+
"published": 1026777600
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "item",
|
|
158
|
+
"item": {
|
|
159
|
+
"kind": "onDemand",
|
|
160
|
+
"id": "Sniffles1955",
|
|
161
|
+
"title": "Sniffles and Sneezes",
|
|
162
|
+
"media": "video",
|
|
163
|
+
"image": "https://archive.org/services/img/Sniffles1955",
|
|
164
|
+
"published": 1026777600
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"type": "item",
|
|
169
|
+
"item": {
|
|
170
|
+
"kind": "onDemand",
|
|
171
|
+
"id": "ParkCons1938",
|
|
172
|
+
"title": "Park Conscious",
|
|
173
|
+
"media": "video",
|
|
174
|
+
"image": "https://archive.org/services/img/ParkCons1938",
|
|
175
|
+
"published": 1026777600
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"type": "item",
|
|
180
|
+
"item": {
|
|
181
|
+
"kind": "onDemand",
|
|
182
|
+
"id": "Personal1950",
|
|
183
|
+
"title": "Personal Hygiene (Part I)",
|
|
184
|
+
"media": "video",
|
|
185
|
+
"image": "https://archive.org/services/img/Personal1950",
|
|
186
|
+
"published": 1026777600
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"type": "item",
|
|
191
|
+
"item": {
|
|
192
|
+
"kind": "onDemand",
|
|
193
|
+
"id": "122Eyes1950",
|
|
194
|
+
"title": "122 Eyes",
|
|
195
|
+
"media": "video",
|
|
196
|
+
"image": "https://archive.org/services/img/122Eyes1950",
|
|
197
|
+
"published": 1026777600
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "item",
|
|
202
|
+
"item": {
|
|
203
|
+
"kind": "onDemand",
|
|
204
|
+
"id": "Usingthe1947",
|
|
205
|
+
"title": "Using the Bank",
|
|
206
|
+
"media": "video",
|
|
207
|
+
"image": "https://archive.org/services/img/Usingthe1947",
|
|
208
|
+
"published": 1026777600
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"type": "item",
|
|
213
|
+
"item": {
|
|
214
|
+
"kind": "onDemand",
|
|
215
|
+
"id": "bacteria_friend_and_foe",
|
|
216
|
+
"title": "Bacteria: Friend and Foe",
|
|
217
|
+
"media": "video",
|
|
218
|
+
"image": "https://archive.org/services/img/bacteria_friend_and_foe",
|
|
219
|
+
"published": 1053084937
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"type": "item",
|
|
224
|
+
"item": {
|
|
225
|
+
"kind": "onDemand",
|
|
226
|
+
"id": "HaveITol1958",
|
|
227
|
+
"title": "Have I Told You Lately That I Love You?",
|
|
228
|
+
"media": "video",
|
|
229
|
+
"image": "https://archive.org/services/img/HaveITol1958",
|
|
230
|
+
"published": 1026777600
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"type": "item",
|
|
235
|
+
"item": {
|
|
236
|
+
"kind": "onDemand",
|
|
237
|
+
"id": "CaseofSp1940",
|
|
238
|
+
"title": "Case of Spring Fever, A",
|
|
239
|
+
"media": "video",
|
|
240
|
+
"image": "https://archive.org/services/img/CaseofSp1940",
|
|
241
|
+
"published": 1026777600
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"next": "2"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "browse",
|
|
3
|
+
"call": "list",
|
|
4
|
+
"args": [
|
|
5
|
+
{}
|
|
6
|
+
],
|
|
7
|
+
"exchanges": [
|
|
8
|
+
{
|
|
9
|
+
"request": {
|
|
10
|
+
"method": "GET",
|
|
11
|
+
"url": "https://archive.org/advancedsearch.php?q=collection%3Aprelinger%20AND%20mediatype%3Amovies&fl%5B%5D=identifier&fl%5B%5D=title&fl%5B%5D=publicdate&sort%5B%5D=downloads+desc&rows=20&page=1&output=json"
|
|
12
|
+
},
|
|
13
|
+
"response": {
|
|
14
|
+
"status": 200,
|
|
15
|
+
"headers": {
|
|
16
|
+
"content-type": "application/json"
|
|
17
|
+
},
|
|
18
|
+
"body": "{\"response\":{\"numFound\":0}}"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"error": {
|
|
23
|
+
"kind": "other",
|
|
24
|
+
"message": "Internet Archive 的搜索结果缺了 docs"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "browse",
|
|
3
|
+
"call": "list",
|
|
4
|
+
"args": [
|
|
5
|
+
{}
|
|
6
|
+
],
|
|
7
|
+
"exchanges": [
|
|
8
|
+
{
|
|
9
|
+
"request": {
|
|
10
|
+
"method": "GET",
|
|
11
|
+
"url": "https://archive.org/advancedsearch.php?q=collection%3Aprelinger%20AND%20mediatype%3Amovies&fl%5B%5D=identifier&fl%5B%5D=title&fl%5B%5D=publicdate&sort%5B%5D=downloads+desc&rows=20&page=1&output=json"
|
|
12
|
+
},
|
|
13
|
+
"response": {
|
|
14
|
+
"status": 200,
|
|
15
|
+
"headers": {
|
|
16
|
+
"content-type": "text/html; charset=UTF-8"
|
|
17
|
+
},
|
|
18
|
+
"body": "<html><body>We are down for maintenance</body></html>"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"error": {
|
|
23
|
+
"kind": "other",
|
|
24
|
+
"message": "Internet Archive 的应答不是 JSON"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "browse",
|
|
3
|
+
"call": "list",
|
|
4
|
+
"args": [
|
|
5
|
+
{}
|
|
6
|
+
],
|
|
7
|
+
"exchanges": [
|
|
8
|
+
{
|
|
9
|
+
"request": {
|
|
10
|
+
"method": "GET",
|
|
11
|
+
"url": "https://archive.org/advancedsearch.php?q=collection%3Aprelinger%20AND%20mediatype%3Amovies&fl%5B%5D=identifier&fl%5B%5D=title&fl%5B%5D=publicdate&sort%5B%5D=downloads+desc&rows=20&page=1&output=json"
|
|
12
|
+
},
|
|
13
|
+
"response": {
|
|
14
|
+
"status": 403,
|
|
15
|
+
"headers": {
|
|
16
|
+
"content-type": "text/html; charset=UTF-8"
|
|
17
|
+
},
|
|
18
|
+
"body": "<html><body>Forbidden</body></html>"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"error": {
|
|
23
|
+
"kind": "refused",
|
|
24
|
+
"message": "Internet Archive 拒绝了这次请求"
|
|
25
|
+
}
|
|
26
|
+
}
|