Kodi Community Forum

Full Version: PseudoLibrary doesn't create strm files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.
I'm trying to generate .strm file for plugin content using PseudoLibrary.
This is the first time i installed this plugin, but it seems doesn't work for me at all...
I'm running Kodi 16.1 under OSMC on Raspberry Pi 2 B
I configured plugin to save .strm files to /home/osmc/strm
But is doesn't save any strm files at all.
What i am doing wrong ?

My actions:
Go to Video - Plugins - PseudoLibrary - Video Plugins - Youtube.
Select needed video, open context menu and click Create STRM
Next dialog window appers with 4 options:
TV
Episodes
Movies
Other

I select "other" and that's it... nothing happens...
I checked my strm folder and it's empty.

What's in log:
Code:
17:39:29 6546.744141 T:1420010480  NOTICE: [plugin.video.pseudo.library-0.0.2a]: Mode: 200
17:39:29 6546.744141 T:1420010480  NOTICE: [plugin.video.pseudo.library-0.0.2a]: URL: plugin://plugin.video.youtube/play/?video_id=e96lbFiG_k8
17:39:29 6546.744141 T:1420010480  NOTICE: [plugin.video.pseudo.library-0.0.2a]: Name: Gus Gus - Full Performance (Live on KEXP)
17:39:29 6546.744141 T:1420010480  NOTICE: [plugin.video.pseudo.library-0.0.2a]: write multi strms
17:39:36 6553.989746 T:1420010480  NOTICE: [plugin.video.pseudo.library-0.0.2a]: writeSettings2
17:39:36 6553.992676 T:1420010480  NOTICE: [plugin.video.pseudo.library-0.0.2a]: fillPluginItems
17:39:36 6553.993164 T:1420010480  NOTICE: [plugin.video.pseudo.library-0.0.2a]: requestList, path = plugin://plugin.video.youtube/play/?video_id=e96lbFiG_k8
What's in /home/osmc/.kodi/userdata/addon_data/plugin.video.pseudo.library/settings2.xml:
Code:
Other|plugin://plugin.video.youtube/play/?video_id=e96lbFiG_k8

No action, no errors.
Could somebody help with that ?[/quote]
C-mon? Anybody ?
Open up addons/plugin.video.pseudo.library/default.py

Go to line 210 and you'll see:
Code:
if strm_type in ['TV','Episodes']:
                path = os.path.join('TV',strm_name)
                filename = strm_name + ' - ' + label
                print path, filename

Edit that so it includes the else statement below it:
Code:
if strm_type in ['TV','Episodes']:
                path = os.path.join('TV',strm_name)
                filename = strm_name + ' - ' + label
                print path, filename
            else:
                path = os.path.join('Other',strm_name)
                filename = strm_name
                print path, filename

Save default.py and go back into PseudoLibrary and try adding it again and you should be all set.
Unfortunately, no effect.

Here is my changes in default.py

Image

Here is my PseudoLibrary settings

Image

Here is log:

Code:
15:07:20 1014.310730 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: fillPluginItems
15:07:20 1014.310852 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: requestList, path = plugin://plugin.video.youtube/channel/mine/playlist/LLkcDgFmWouNpqsCxmD0nhag/
15:07:22 1016.132996 T:1409520624  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Jarvis (16.1) with Python 2.7.9
15:07:23 1017.309753 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: addLink
15:07:31 1025.254517 T:1366553584  NOTICE: Previous line repeats 9 times.
15:07:31 1025.254761 T:1366553584 WARNING: Attempt to use invalid handle -1
15:07:31 1025.255005 T:1366553584 WARNING: Previous line repeats 4 times.
15:07:31 1025.255005 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: get_params
15:07:31 1025.255127 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: paramstring = ?url=plugin%3A%2F%2Fplugin.video.youtube%2Fplay%2F%3Fvideo_id%3De96lbFiG_k8&mode=10&name=Gus+Gus+-+Full+Performance+%28Live+on+KEXP%29&fanart=image%3A%2F%2Fhttps%253a%252f%252fyt3.ggpht.com%252f-_v3qWttEIrw%252fUxShfj9kTwI%252fAAAAAAAAAEM%252f0breLr8Lq0E%252fw1280-fcrop64%253d1%252c00000000ffffffff-nd-c0xffffffff-rj-k-no%252fchannels4_banner.jpg%2F&mode=200&name=Gus Gus - Full Performance (Live on KEXP)
15:07:31 1025.255493 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: param = {'url': 'plugin%3A%2F%2Fplugin.video.youtube%2Fplay%2F%3Fvideo_id%3De96lbFiG_k8', 'fanart': 'image%3A%2F%2Fhttps%253a%252f%252fyt3.ggpht.com%252f-_v3qWttEIrw%252fUxShfj9kTwI%252fAAAAAAAAAEM%252f0breLr8Lq0E%252fw1280-fcrop64%253d1%252c00000000ffffffff-nd-c0xffffffff-rj-k-no%252fchannels4_banner.jpg%2F', 'mode': '200', 'name': 'Gus Gus - Full Performance (Live on KEXP)'}
15:07:31 1025.256104 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: Mode: 200
15:07:31 1025.256348 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: URL: plugin://plugin.video.youtube/play/?video_id=e96lbFiG_k8
15:07:31 1025.256470 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: Name: Gus Gus - Full Performance (Live on KEXP)
15:07:31 1025.256470 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: write multi strms
15:07:34 1028.227661 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: writeSettings2
15:07:34 1028.230957 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: fillPluginItems
15:07:34 1028.231201 T:1366553584  NOTICE: [plugin.video.pseudo.library-0.0.2a]: requestList, path = plugin://plugin.video.youtube/play/?video_id=e96lbFiG_k8

No STRM file was created Sad
I've added some additional information to log
I think the problem is

fillPluginItems, url = plugin://plugin.video.youtube/play/?video_id=e96lbFiG_k8 media_type=video file_type=False strm=True strm_name=Gus Gus - Full Performance (Live on KEXP) strm_type=Other

According to default.py logic it will never call writeSTRM() unless file_type is 'file'

In my case it is False

And while it is False PseudoLibrary calls

requestList, path = plugin://plugin.video.youtube/play/?video_id=e96lbFiG_k8

variable detail gets the value
"['"id":1,"jsonrpc":"2.0","result":{"limits":{"end":0,"start":0,"total":0']

and this condition in python
if filetypes and labels and files: will never be true and followed code will never be executed....
I'm still working on updating this add-on for my own uses, and I never had the need to add individual files as steams, only the container directory. Took me some time to figure this out, but this should work:

Look for the following line in the def addLink() function:
Code:
contextMenu.append(('Create Strm','XBMC.RunPlugin(%s&mode=200&name=%s)'%(u, name)))
and change it to:
Code:
contextMenu.append(('Create Strm','XBMC.RunPlugin(%s&mode=201&name=%s)'%(u, name)))

At the very bottom, change the
Code:
elif mode==201:
to look like this:
Code:
elif mode==201:
    addon_log("write single strm")
    type = getType()
    makeSTRM(type, name, url)
(2016-09-06, 17:56)Doctor Eggs Wrote: [ -> ]I'm still working on updating this add-on for my own uses, and I never had the need to add individual files as steams, only the container directory. Took me some time to figure this out, but this should work:

Look for the following line in the def addLink() function:
Code:
contextMenu.append(('Create Strm','XBMC.RunPlugin(%s&mode=200&name=%s)'%(u, name)))
and change it to:
Code:
contextMenu.append(('Create Strm','XBMC.RunPlugin(%s&mode=201&name=%s)'%(u, name)))

At the very bottom, change the
Code:
elif mode==201:
to look like this:
Code:
elif mode==201:
    addon_log("write single strm")
    type = getType()
    makeSTRM(type, name, url)

Can you push to code to github? I always welcome help...
The only reason it was abandon... no user feedback (figured it wasn't being used).... and I wanted to move the concept into my other plugin PseudoCompanion.
Doctor Eggs Thank you so much!
Works like a charm now!
That's exactly what i tried to do.
Problem solved!

Lunatixz
Your addon is awesome - here is my feedback. Smile
I found couple bugs more. If you have time i may share - possibly you will fix them sometime Smile
Since there aren't many threads for PseudoLibrary, I'll just add my feedback here. I use PseudoLibrary daily. The reason I've never given any feedback is that it just works for me. I'm fine if the functionality gets rolled into something else, but if it doesn't I hope this will keep getting maintenance. Otherwise I'll have to go back to the Java based thing I was using that isn't integrated into Kodi that well. Ick.
(2016-10-18, 04:41)pkscout Wrote: [ -> ]Since there aren't many threads for PseudoLibrary, I'll just add my feedback here. I use PseudoLibrary daily. The reason I've never given any feedback is that it just works for me. I'm fine if the functionality gets rolled into something else, but if it doesn't I hope this will keep getting maintenance. Otherwise I'll have to go back to the Java based thing I was using that isn't integrated into Kodi that well. Ick.

Glad its been working for you Smile Last week I started up development again. You can expect a update soon.
Lunatixz - excellent news Smile
Thank you once again and have a lot of inspiration in your development Smile

I can't understand what is the difference between:
"Internal Strm link references": PseudoLibrary/Original Plugin ?
Because result is always the same *strm file regardless from this option's value.

There is strange behavior i found with pseudo library and YouTube:
While I'm navigate with PseudoLibrary through YouTube content, after i started playing any file from within PseudoLibrary navigation - there is no "Create STRM" option in context menu anymore. I have to go back to plugin selection and repeat all steps to reach needed file and use context menu for strm creation.
That's really annoying when you are searching for something.
The rest plugins seems ok with that.

And it would be great to see NFO's generation too in next release.

Thanks.
(2016-10-18, 14:21)Lunatixz Wrote: [ -> ]
(2016-10-18, 04:41)pkscout Wrote: [ -> ]Since there aren't many threads for PseudoLibrary, I'll just add my feedback here. I use PseudoLibrary daily. The reason I've never given any feedback is that it just works for me. I'm fine if the functionality gets rolled into something else, but if it doesn't I hope this will keep getting maintenance. Otherwise I'll have to go back to the Java based thing I was using that isn't integrated into Kodi that well. Ick.

Glad its been working for you Smile Last week I started up development again. You can expect a update soon....

When I installed it from the github zip it didn't work, it didn't add any options to the context menu to create strm's. But when I installed the old one (0.0.2a) from your repository it worked.
(2016-10-18, 14:21)Lunatixz Wrote: [ -> ]Glad its been working for you Smile Last week I started up development again. You can expect a update soon.

Is this no longer being developed? I went to Git and saw that it was removed.
https://github.com/PseudoTV
Users were prematurely downloading it... Not understanding it's a development project. So I temporarily removed. When a stable build is finished it will be available in my repo.
I am able to create strm files, but the folder structure is incorrect with PlayOn. I've searched throughout the forums and I can't seem to find a solution. What I'm getting is the title of the show being named Season 1 (or whatever number the season is). This happens no matter what hierarchy I create the files from. For example if I click create strms from My List within Netflix it creates all the shows with the folder being their season. Same thing happens if I go into an individual show. Am I doing something wrong? It doesn't look like anybody else has had this problem or at least posted about it.