Jump to content

Search the Community

Showing results for tags 'prompts'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
    • Emby Premiere Purchase/Subscription Support
    • Feature Requests
    • Tutorials and Guides
  • Emby Server
    • General/Windows
    • Android Server
    • Asustor
    • FreeBSD
    • Linux
    • NetGear ReadyNAS
    • MacOS
    • QNAP
    • Synology
    • TerraMaster NAS
    • Thecus
    • Western Digital
    • DLNA
    • Live TV
  • Emby Apps
    • Amazon Alexa
    • Android
    • Android TV / Fire TV
    • Windows & Xbox
    • Apple iOS / macOS
    • Apple TV
    • Kodi
    • LG Smart TV
    • Linux & Raspberry Pi
    • Roku
    • Samsung Smart TV
    • Sony PlayStation
    • Web App
    • Windows Media Center
    • Plugins
  • Language-specific support
    • Arabic
    • Dutch
    • French
    • German
    • Italian
    • Portuguese
    • Russian
    • Spanish
    • Swedish
  • Community Contributions
    • Ember for Emby
    • Fan Art & Videos
    • Tools and Utilities
    • Web App CSS
  • Testing Area
    • WMC UI (Beta)
  • Other
    • Non-Emby General Discussion
    • Developer API
    • Hardware
    • Media Clubs

Blogs

  • Emby Blog

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. Gungelalex

    Stubs Creation Wizard

    I have a niche problem that I created a [not-perfect] solution for. I want to create stub files for my media that I don't have converted from physical media yet. When I do have those movies converted, there are already folders to put them in, but creating the folders and the files by hand is tedious. In response to this dilemma, I created a script (having never really using PowerShell and through about 3 hours of research, trial and error) that would help me make these properly formatted stub files faster. do { #Have user type in the Movie name and year using Emby Format; $proc = Read-Host -Prompt 'Input Movie Name and Year as `"NameOfFilm (YYYY)`". Otherwise, type `"done`"'; #If user types "done", the script will exit the loop and exit the terminal; If($proc -eq 'done') {break}; #Ask user for the movies' media type; $form = Read-Host -Prompt 'Input Movie Format (bluray, dvd, vhs)'; #Sets "$file" variable using user prompted variables "$proc" and "$form"; $file = "$proc\$proc.$form.disc"; #Creates movie folder first, and then creates the file; New-Item $proc -type Directory | Out-Null; New-Item $file -type File -Value $proc | Out-Null; #shows that script has recorded file in the terminal; Write-Host "Recorded $file"; #tests "$proc" variable: continues loop if not equal to "done"; }while ($proc -ne 'done') At the moment, it is a user prompted script, so there is still some tedium, but it isn't as bad as it used to be. I have the script stored in the library location for my Movies, and run it when I want to add a new stub. Once done, you can simply type "done" during the movie name prompt to close the script. With finessing, it could be reworked to use a spreadsheet as the source of the info, and I eventually want to do that (I'll need to learn more PowerShell scripting). Posting this for anyone else who might have this problem and need a solution, or for anyone who wants to contribute. V2: New-Item Output is silenced through Out-Null, to cleanup the terminal during use. stubMaker_v2.ps1 stubMaker_v1.ps1
×
×
  • Create New...