Results 1 to 4 of 4

Thread: Setting boxee view/sort options in Python plugin

  1. #1
    Join Date
    Apr 2009
    Posts
    14

    Default Setting boxee view/sort options in Python plugin

    I have a video plugin that I wrote in python. I am happy using the boxee directory and don't really want to create a whole skin for it, but I was wondering if there is an easy way I can specify the default view and sort order for each directory?

    For example, I want the first level directory that lists the shows to default to thumbnail view and sort by name. I want the next level that shows episodes to be in list view and sort by date.

    Is there an easy way to do this? This is pure python, no RSS as of now.

  2. #2
    Join Date
    Apr 2009
    Posts
    14

    Default

    So I think I can use the xbmc.executebuiltin('Container.SetViewMode(id)') command in python to set the view, but I cant seem to find the ID numbers for the boxee skin. Does anyone know what they are or where I can find them?

  3. #3
    Join Date
    Apr 2009
    Posts
    14

    Default

    I'm trying to use the following in my python script, but they are not doing anything:

    xbmcplugin.setContent(int(sys.argv[1]), 'episodes')
    xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_EPISODE)
    xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_DURATION)

    Dose boxee obey theses methods? If not is there something I can use instead?

  4. #4
    Join Date
    Nov 2008
    Posts
    5

    Default

    Was a solution for this ever found? I'm trying to convert an XBMC plugin and can't get xbmcplugin.SORT_METHOD_NONE or any other sort method working. The code works fine in XBMC. Everything seems to default to an alphanumeric sort.

    Cheers
    Dink


    Quote Originally Posted by nerdlinger View Post
    I'm trying to use the following in my python script, but they are not doing anything:

    xbmcplugin.setContent(int(sys.argv[1]), 'episodes')
    xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_EPISODE)
    xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_DURATION)

    Dose boxee obey theses methods? If not is there something I can use instead?

Similar Threads

  1. Changing Default Sort Options
    By dhy8386 in forum general boxee help
    Replies: 0
    Last Post: November 21st, 2010, 07:57 AM
  2. python + list + sort != true
    By nauman in forum boxee applications
    Replies: 4
    Last Post: November 15th, 2010, 11:22 AM
  3. Remember sort setting for Movies?
    By 18000rpm in forum boxee for windows help
    Replies: 1
    Last Post: September 4th, 2010, 04:45 AM
  4. More Sorting and View options
    By kjeckell in forum feature requests
    Replies: 3
    Last Post: March 1st, 2009, 07:53 PM
  5. Changing view options for videos
    By longterm in forum boxee for mac help
    Replies: 2
    Last Post: November 30th, 2008, 02:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •