Wildcard / Joker

Post Reply
RDibsi
Posts: 7
Joined: Mon May 23, 2011 9:00 am

Wildcard / Joker

Post by RDibsi »

Hello Eugene,

i have three questions.
Iam using a single PC ( as a Server) connected with a PS3.

1)
is it possible to create a directory, in wich only files ( specially Movies)
are shown, wich include in their filename ...1080 ore 720?
Can i use a joker, like for example *1080.mkv files?

With these Filenames i am able to make a differenc between "normal" Scaled Mowies and
BR / MKV Movies.

2)
I used your script
"var
i: Integer;
AllMoviesFolder: TWmsScriptMediaItem;
begin
AllMoviesFolder := WmsFindMediaFolder(mfVideoAllMoviesItemID);
if AllMoviesFolder <> nil then
for i := 0 to AllMoviesFolder.ChildCount - 1 do
if Date - GetFileDate(AllMoviesFolder.ChildItems.Properties[mpiMediaResourceSource]) <= 30 then
WmsDatabaseAddLink(FolderItem.ItemID, '', AllMoviesFolder.ChildItems)
end."

It is working fine, but it shows me the directly the files and not ( as i would prefer) the Folders.
Is it possible to show me there the Folders/ Subfolders?

If i have many new files in a subfolder( for example vob Files of a movies)
each file will be shown in this List.
It would be better, if there will be shown a folder, example "MyChilds in Action" and i can enter the Subfolder to start the single
vob files.

This problem has happened too, when i had a Subfolder from a TV Serie including 20 generated AVI Files.
The List of the "Last 30 Days, was full of these Files and too long.

3)
Is there any Chance to search for a File, or an Actor with the PS3?
Maybe with Jokers ( Example: *Ford or *Tom ) generating a List ( Subfolders) of all Hits

Thanks for your enjoyment and your grest Server

Greetings

RDibsi
Eugene
Posts: 2940
Joined: Tue Nov 17, 2009 8:05 pm

Re: Wildcard / Joker

Post by Eugene »

Hello,
RDibsi wrote: i have three questions.
Iam using a single PC ( as a Server) connected with a PS3.

1)
is it possible to create a directory, in wich only files ( specially Movies)
are shown, wich include in their filename ...1080 ore 720?
Can i use a joker, like for example *1080.mkv files?

With these Filenames i am able to make a differenc between "normal" Scaled Mowies and
BR / MKV Movies.
List [Movies] - right click - "Column customization" - drag and drop the column header "Frame height" to the folder Collections - Ok
Must be created a folder with grouping by "Frame height". You can filter the values: Collections - "Frame height" - Grouping - mpHeight - right click - Edit - "Allowed values" - 1080, 720 - Ok

RDibsi wrote: 2)
I used your script
"var
i: Integer;
AllMoviesFolder: TWmsScriptMediaItem;
begin
AllMoviesFolder := WmsFindMediaFolder(mfVideoAllMoviesItemID);
if AllMoviesFolder <> nil then
for i := 0 to AllMoviesFolder.ChildCount - 1 do
if Date - GetFileDate(AllMoviesFolder.ChildItems.Properties[mpiMediaResourceSource]) <= 30 then
WmsDatabaseAddLink(FolderItem.ItemID, '', AllMoviesFolder.ChildItems)
end."

It is working fine, but it shows me the directly the files and not ( as i would prefer) the Folders.
Is it possible to show me there the Folders/ Subfolders?

If i have many new files in a subfolder( for example vob Files of a movies)
each file will be shown in this List.
It would be better, if there will be shown a folder, example "MyChilds in Action" and i can enter the Subfolder to start the single
vob files.

This problem has happened too, when i had a Subfolder from a TV Serie including 20 generated AVI Files.
The List of the "Last 30 Days, was full of these Files and too long.

Code: Select all

var
  i: Integer;
  AllMoviesFolder: TWmsScriptMediaItem;  
  sFileName: string;
begin
  AllMoviesFolder := WmsFindMediaFolder(mfVideoAllMoviesItemID);
  if AllMoviesFolder <> nil then 
    for i := 0 to AllMoviesFolder.ChildCount - 1 do begin    
      sFileName := AllMoviesFolder.ChildItems[i].Properties[mpiFilePath];
      if Date - GetFileDate(sFileName) <= 30 then
        WmsDatabaseAddLink(FolderItem.ItemID, ExtractFileName(ExtractFileDir(sFileName)), AllMoviesFolder.ChildItems[i])        
    end
end.
RDibsi wrote: 3)
Is there any Chance to search for a File, or an Actor with the PS3?
Maybe with Jokers ( Example: *Ford or *Tom ) generating a List ( Subfolders) of all Hits
UPnP standard support search, case for PS3 developers.
RDibsi
Posts: 7
Joined: Mon May 23, 2011 9:00 am

Re: Wildcard / Joker

Post by RDibsi »

Thanks a lot,

the "Last 30 Days " List works great!!!

Thanks for the answer "1080" List too

"
List [Movies] - right click - "Column customization" - drag and drop the column header "Frame height" to the folder Collections - Ok
Must be created a folder with grouping by "Frame height". You can filter the values: Collections - "Frame height" - Grouping - mpHeight - right click - Edit - "Allowed values" - 1080, 720 - Ok
"
It works well! But is it possible do show/list me there the Subfolders-then Files, in a similar / the same way as in the "30 Days " Listing?

Nevertheless, thanks for your help and once again

Grettings :-)

RDibsi
Eugene
Posts: 2940
Joined: Tue Nov 17, 2009 8:05 pm

Re: Wildcard / Joker

Post by Eugene »

"Frame height" - Grouping - mpHeight - right click - Edit - "Expression grouping"

Code: Select all

IntToStr(mpHeight) + '\' + ExtractFileName(ExtractFileDir(mpFilePath))
Clear "Allowed values"
RDibsi
Posts: 7
Joined: Mon May 23, 2011 9:00 am

Re: Wildcard / Joker

Post by RDibsi »

Thanks Eugene!
Post Reply