Search the Community
Showing results for tags 'stubs'.
-
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
-
Greetings, I'm thinking of trying out Emby, and I have a few questions. I was wondering if it is possible to create custom Media Stub Flags? For example, I have online content spread across providers like Vudu and Disney Movies Anywhere, and it'd be nice to be able to aggregate those titles within Emby along with my local videos (even though I'd have to open up Vudu to actually view a given video). Is there an "advanced settings" method of adding to the list of recognized Flags (eg, movie1.vudu.disc)? This would of course only be useful if I can also define what would be displayed in accordance with the custom flag (eg, so instead of DVD for a .dvd. flag, display Vudu.com, or whatever corresponds to the custom flag I've set). How does Emby for Roku handle Media Stubs, and does the interface display anything in response to the Flag (eg, DVD, Blu-ray, TV, etc.)? In my current setup I have the IMDB id (eg, tt2975590) in the database for any of my titles that exist in IMDB, so it would be possible for me to extract that into filenames. Would including that in the filename (whether for an actual video file), or for a Media Stub, help Emby with accurately identifying titles? And if so, what would be the recommended syntax for where in the filename to put that? Thanks much!