Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add System.RecordedTV.EpisodeNumber #20

Open
milesdream opened this issue Oct 26, 2024 · 1 comment
Open

Add System.RecordedTV.EpisodeNumber #20

milesdream opened this issue Oct 26, 2024 · 1 comment
Assignees

Comments

@milesdream
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

I miss ShellProperty EpisodeNumber in ApiCodepack Shell

in StronglyTypedProperties.cs
Add around Line 10623

///


/// Name: System.RecordedTV.EpisodeNumber -- PKEY_RecordedTV_EpisodeName
/// Description: Example: "Nowhere to Hyde"
///
/// Type: String -- VT_LPWSTR (For variants: VT_BSTR)
/// FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 2
///

public ShellProperty<UInt32?> EpisodeNumber
{
get
{
PropertyKey key = SystemProperties.System.Media.EpisodeNumber;

    if (!hashtable.ContainsKey(key))
    {
        hashtable.Add(key, shellObjectParent.Properties.CreateTypedProperty<UInt32?>(key));
    }

    return hashtable[key] as ShellProperty<UInt32?>;
}

}

and in SystemProperties
Line 7940

///


/// Name: System.Media.EpisodeNumber -- PKEY_Media_EpisodeNumber
/// Description: Example: "1"
///
/// Type: UInt32 -- VT_UI4
/// FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 2
/// Description System.Media.EpisodeNumber
/// A 1 based monotonically incremented number that corresponds to the episode of the show
///
///

///
public static PropertyKey EpisodeNumber
{
get
{
PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 100);
return key;
}
}

thanks
[email protected]

@PWagner1 PWagner1 self-assigned this Oct 26, 2024
@milesdream
Copy link
Author

I also have this in my SystemProperties.cs Line 7939
///


/// Name: System.Media.EpisodeNumber -- PKEY_Media_EpisodeNumber
/// Description: Example: "1"
///
/// Type: UInt32 -- VT_UI4
/// FormatID: {6D748DE2-8D38-4CC3-AC60-F009B057C557}, 2
/// Description System.Media.EpisodeNumber
/// A 1 based monotonically incremented number that corresponds to the episode of the show
///
///

///
public static PropertyKey EpisodeNumber
{
get
{
PropertyKey key = new PropertyKey(new Guid("{64440492-4C8B-11D1-8B70-080036B11A03}"), 100);
return key;
}
}
public static PropertyKey SeasonNumber => new
PropertyKey
("{64440492-4C8B-11D1-8B70-080036B11A03}", 101);

[email protected]

@PWagner1 PWagner1 reopened this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants