Repository: dkanada/jellyfin-plugin-intros Branch: master Commit: c6735a1a1cf3 Files: 14 Total size: 65.7 KB Directory structure: gitextract_ym0oggb9/ ├── .github/ │ └── workflows/ │ └── main.yml ├── .gitignore ├── Jellyfin.Plugin.Intros/ │ ├── Configuration/ │ │ ├── PluginConfiguration.cs │ │ └── config.html │ ├── IntroManager.cs │ ├── IntroProvider.cs │ ├── Jellyfin.Plugin.Intros.csproj │ ├── Plugin.cs │ └── VimeoConfig.cs ├── Jellyfin.Plugin.Intros.sln ├── LICENSE ├── README.md ├── build.yaml └── manifest.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/workflows/main.yml ================================================ name: main on: push jobs: main: runs-on: ubuntu-latest steps: - name: Repository uses: actions/checkout@v2 with: fetch-depth: 0 - name: Variables id: variables run: echo ::set-output name=version::$(git describe --tags --always) - name: Runtime uses: actions/setup-dotnet@v1 with: dotnet-version: 6.0.x - name: Dependencies run: dotnet restore - name: Build run: dotnet build --configuration release - name: Move run: mv Jellyfin.Plugin.Intros/bin/*/*/Jellyfin.Plugin.Intros.dll . - name: Compress env: version: ${{ steps.variables.outputs.version }} run: zip jellyfin-plugin-intros-${version}.zip *.dll - name: Publish if: startsWith(github.ref, 'refs/tags') uses: ncipollo/release-action@v1 with: artifacts: '*.zip' tag: ${{ steps.variables.outputs.version }} commit: ${{ github.sha }} token: ${{ github.token }} ================================================ FILE: .gitignore ================================================ # build bin obj artifacts # ide .idea .vs ================================================ FILE: Jellyfin.Plugin.Intros/Configuration/PluginConfiguration.cs ================================================ using System; using MediaBrowser.Model.Plugins; namespace Jellyfin.Plugin.Intros.Configuration { public class PluginConfiguration : BasePluginConfiguration { public string Local { get; set; } = string.Empty; public string Vimeo { get; set; } = string.Empty; public int Intro { get; set; } = Plugin.DefaultIntro; public int Resolution { get; set; } = Plugin.DefaultResolution; public bool Random { get; set; } = false; // used internally to track the current intro public Guid Id { get; set; } } } ================================================ FILE: Jellyfin.Plugin.Intros/Configuration/config.html ================================================
This is a plugin built with DotNet that can download flashy intros from prerolls.video for your movies.
## Install 1. Open the dashboard in Jellyfin, then select `Plugins` and open `Repositories` at the top. 2. Click the `+` button, and add the repository URL below, naming it whatever you like. Save. ``` https://raw.githubusercontent.com/dkanada/jellyfin-plugin-intros/master/manifest.json ``` 3. Select `Catalog` at the top and click on 'Intros' at the very bottom of the list. Install the most recent version. 4. Restart Jellyfin and go back to the plugin settings. Select `Installed` at the top and then 'Intros' to configure. ## Build 1. Clone or download this repository. 2. Ensure you have the DotNet SDK set up and installed. 3. Build the plugin with following commands. ```sh dotnet publish --configuration release --output bin ``` 4. Place the resulting binary in your `plugins` folder. ================================================ FILE: build.yaml ================================================ name: 'Intros' guid: '9482dc3b-48aa-4d3b-8224-9128d1e8e0cd' version: '1.3.2.0' targetAbi: '10.8.0.0' framework: 'net6.0' owner: 'dkanada' overview: 'Display flashy intros before movies and other videos' description: > Select a flashy pre-roll from prerolls.video to run before any video content. The videos will be cached locally when selected to avoid buffering. After a new video is selected, the first playback event will take anywhere from 10 to 40 seconds to start while the pre-roll downloads. category: 'Other' artifacts: - 'Jellyfin.Plugin.Intros.dll' changelog: > Initial Release ================================================ FILE: manifest.json ================================================ [ { "guid": "9482dc3b-48aa-4d3b-8224-9128d1e8e0cd", "name": "Intros", "overview": "Display flashy intros before movies and other videos", "description": "Select a flashy video from prerolls.video to run before any video content.", "owner": "dkanada", "category": "Other", "versions": [ { "version": "1.3.1.0", "changelog": "- update build process and migrate to github for hosting", "targetAbi": "10.6.0.0", "sourceUrl": "https://github.com/dkanada/jellyfin-plugin-intros/releases/download/v1.3.1/jellyfin-plugin-intros-v1.3.1.zip", "checksum": "689cf1b5a9f8adb1a31750da16623996", "timestamp": "2021-06-02T00:00:00Z" }, { "version": "1.3.2.0", "changelog": "- fix issue with local trailers and update dependencies", "targetAbi": "10.8.0.0", "sourceUrl": "https://github.com/dkanada/jellyfin-plugin-intros/releases/download/v1.3.2/jellyfin-plugin-intros-v1.3.2.zip", "checksum": "14c876026bd71c2b8d11196fab0df527", "timestamp": "2022-09-14T00:00:00Z" } ] } ]