loois 0 Posted December 23, 2024 Posted December 23, 2024 Hi, I'd like to add the list of all movies I watched to make Emby my complete catalog/library, even if I can't watch them all. I'm new to Emby, I've searched the forum and if I understand correctly, there is no way to import lists into Emby, is there? So we have to create "fake" movie files, using some script..? If you guys know a solution or a tool, please share it with me ! Thank you Cheers loois
Luke 42077 Posted December 23, 2024 Posted December 23, 2024 Hi, yes I would suggest stub files: Media Stubs
loois 0 Posted December 23, 2024 Author Posted December 23, 2024 Hi @Luke Thanks for your reply! I tried the .disc Media Stubs but it's not that obvious what's an offline media vs own media..? Emby doesn't differentiate them, is it? Except that if I open an own movie i can watch it, if it's an offline media there's a error message when i click on watch. What's the expected use of .disc..? Emby says also "..allow Emby's library to index your "offline" media collection, as well as ask for the media when selected for playback." > how can I "ask for the media"? NB: one usage I see is to use .disk as a filter to my collection Thank you
loois 0 Posted December 23, 2024 Author Posted December 23, 2024 By the way, regarding my need to convert a movie list to files > I've found a VBA macro in Excel that convert each line of an excel worskeet into actual files. Here's the code I used to create .disc files: Sub ConvertRowsToFiles() Dim ws As Worksheet Dim lastRow As Long Dim i As Long Dim filePath As String Dim fileContent As String Dim fileName As String Set ws = ActiveSheet lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row filePath = "C:\Output\" ' Change this to your desired output folder For i = 2 To lastRow ' Assuming row 1 is header fileContent = ws.Cells(i, 1).Value ' Adjust column number as needed fileName = ws.Cells(i, 1).Value & ".disc" ' Use cell value as filename ' Replace any invalid characters in filename fileName = Replace(fileName, "\", "_") fileName = Replace(fileName, "/", "_") fileName = Replace(fileName, ":", "_") fileName = Replace(fileName, "*", "_") fileName = Replace(fileName, "?", "_") fileName = Replace(fileName, """", "_") fileName = Replace(fileName, "<", "_") fileName = Replace(fileName, ">", "_") fileName = Replace(fileName, "|", "_") Open filePath & fileName For Output As #1 Print #1, fileContent Close #1 Next i MsgBox "Files created successfully!" End Sub Instructions to Use: Open your Excel workbook. Press Alt + F11 to open the VBA editor. Insert a new module and paste the modified code. Modify the filePath variable to specify your desired output folder. Run the macro. This will create individual text files named after the values in each specified cell from your Excel sheet. Make sure that the values in those cells are suitable for filenames!
Luke 42077 Posted December 23, 2024 Posted December 23, 2024 10 hours ago, loois said: Hi @Luke Thanks for your reply! I tried the .disc Media Stubs but it's not that obvious what's an offline media vs own media..? Emby doesn't differentiate them, is it? Except that if I open an own movie i can watch it, if it's an offline media there's a error message when i click on watch. What's the expected use of .disc..? Emby says also "..allow Emby's library to index your "offline" media collection, as well as ask for the media when selected for playback." > how can I "ask for the media"? NB: one usage I see is to use .disk as a filter to my collection Thank you The usage of stub is to index content that you might have on a physical disk, and have to use a physical media player to play (not within Emby). It just gives you a way to import that content into Emby Server. I suggested it because it seems like the closest fit to what you want to do , even if it isn't a perfect one.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now