Kodi Community Forum
[RELEASE] Pneumatic - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Pneumatic (/showthread.php?tid=97657)



- timgt - 2011-08-31

Popeye Wrote:It all depends on you connection and the size of the first rar.

The big question, does the new version work better or not? Big Grin

I honestly don't see a difference from the new version and the last version. It works the same, every now and then I get a plugin script error when trying to stream something but most shows and movies work.


- timgt - 2011-09-01

Is there any way to have the NZB plugin work with smb shares as the incomplete folder? That is the only thing preventing this from working on an apple TV 2.

My SABnzbd incomplete folder is set to:

smb://MYPCNAME/incomplete/

that is the correct place but when I try to open that location in the plugin it gives me a script error.

Any ideas?


- Popeye - 2011-09-01

timgt Wrote:I honestly don't see a difference from the new version and the last version. It works the same, every now and then I get a plugin script error when trying to stream something but most shows and movies work.

And these errors are due to? Without some brain work ;D , logs and system information I cannot help you. Personally I don't see any errors on two different platforms.

timgt Wrote:Is there any way to have the NZB plugin work with smb shares as the incomplete folder? That is the only thing preventing this from working on an apple TV 2.

My SABnzbd incomplete folder is set to:

smb://MYPCNAME/incomplete/

that is the correct place but when I try to open that location in the plugin it gives me a script error.

Any ideas?

Sorry, this is a python limitation AFAIK. Try mount the share by changing fstab on your atv2. Think someone used NFS further back in this thread..


- fpoil - 2011-09-01

The way Sabnzbd gives folders permissions on smb share is why you can use this plugin on smb share.

I also tried and impossible to play any movie.

Each movie folder created by Sabnzbd in incomplete folder during download receives an 500 permission.

http://forum.xbmc.org/showpost.php?p=864212&postcount=185


- timgt - 2011-09-01

Hmmm, I tried creating my incomplete folder as an NFS share instead of SMB on my server and on the apple tv 2 I set it as NFS as the client. I can browse that folder just fine under XMBC but the same thing happens under the plugin, i cannot browse the incomplete folder. It gives me a plugin error just like the SMB mount did.

I wish I knew how to give you the log to see if you could figure out why. I'm not sure how j1nx got NFS shares to work with this plugin, I sure can't


- ckergald - 2011-09-01

I'm using a smb share for my incompelte folder. not really certain why it works for me given what fpoil said but it does.

sab is running on ubunutu 11.04 server, samba share with security=user

xbmc running on windows 7, mounting the smb share as the same user account that sab is running under.

definatly not error free, I still have a few files fail to stream, but most work.


- timgt - 2011-09-02

Does any of this make sense?

Its saying no such file or directory but I can browse it fine on XBMC under files.


Code:
18:03:27 T:110235648   DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/plugin.video.nzbs
18:03:27 T:110235648   DEBUG: Instantiating addon using automatically obtained id of "plugin.video.nzbs" dependent on version 1.0 of the xbmc.python api
18:03:28 T:60792832   DEBUG: ------ Window Init (DialogBusy.xml) ------
18:03:29 T:114388992    INFO: Loading skin file: DialogProgress.xml
18:03:29 T:114388992   DEBUG: DialogProgress::StartModal called
18:03:29 T:114388992   DEBUG: ------ Window Init (DialogProgress.xml) ------
18:03:31 T:110235648    INFO: -->Python script returned the following error<--
18:03:31 T:110235648   ERROR: Error Type: <type 'exceptions.OSError'>
18:03:31 T:110235648   ERROR: Error Contents: (2, 'No such file or directory', 'nfs://192.168.1.127/incomplete/')
18:03:31 T:110235648   ERROR: Traceback (most recent call last):
                                              File "/var/mobile/Library/Preferences/XBMC/addons/plugin.video.nzbs/default.py", line 734, in <module>
                                                incomplete()
                                              File "/var/mobile/Library/Preferences/XBMC/addons/plugin.video.nzbs/default.py", line 643, in incomplete
                                                for folder in os.listdir(INCOMPLETE_FOLDER):
                                            OSError: (2, 'No such file or directory', 'nfs://192.168.1.127/incomplete/')
18:03:31 T:110235648    INFO: -->End of Python script error report<--
18:03:31 T:60792832   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
18:03:31 T:110235648    INFO: Python script stopped



- j1nx - 2011-09-02

timgt Wrote:Hmmm, I tried creating my incomplete folder as an NFS share instead of SMB on my server and on the apple tv 2 I set it as NFS as the client. I can browse that folder just fine under XBMC but the same thing happens under the plugin, i cannot browse the incomplete folder. It gives me a plugin error just like the SMB mount did.

I wish I knew how to give you the log to see if you could figure out why. I'm not sure how j1nx got NFS shares to work with this plugin, I sure can't

With NFS, it looks like a mapped network folder is axectly like any normal local folder and for that reason it also uses the same file security options.

If SABnzbD on the server runs as user="sab" within group="sab" it created any folder within the incomplete using these credentials and a strict 0500 persion set.

So you either have to make sure that xbmc on the client runs as the exact same user as sabnzbd or you have to map them a bit. Keep in mind that the usernames and groepnames are just for the admnistrators ease. It is the relative userID and groupID (the numbers not the name) that telle linux who you are.

Easiest thing to do is to change the way the incomplete folder is mounted by the NFS server/client.

Find out the UserID and GroupID of the sabnzbd user and then use the following (extra) mounting options for the incomplete folder.

Code:
all_squash,anonuid=UID,anongid=GID
Where UID is the userid sabnzbd runs under and GID the goupid.

all_squash
Map all uids and gids to the anonymous user.
anonuid and anongid
These options explicitly set the uid and gid of the anonymous account. This option is primarily useful for PC/NFS clients, where you might want all requests appear to be from one user.


You got the picture?


- timgt - 2011-09-02

Those mounting options don't look available when running the mount command under windows 7. I can mount an NFS drive but have very few options. Maybe those commands are for linux only.

Besides I have no idea how to find my userid and groupid anyway.

Thanks for trying to help but I'm a lost cause. Everything works fine on my PC but the ATV2 is worthless.


- j1nx - 2011-09-02

timgt Wrote:Those mounting options don't look available when running the mount command under windows 7. I can mount an NFS drive but have very few options. Maybe those commands are for linux only.

Besides I have no idea how to find my userid and groupid anyway.

Thanks for trying to help but I'm a lost cause. Everything works fine on my PC but the ATV2 is worthless.

Oh crap, you are on windows. Sorry I give up.


- timgt - 2011-09-18

Time to bring this plugin back to the top of the results where it belongs.

It has been working great on my windows machine but every now and then a file will fail to play and I usually get something in my log that looks like the below code I posted. Any ideas what is causing this sometimes and other times the files play fine?

Code:
22:05:59 T:1168 M:4091138048  NOTICE: -->Python Interpreter Initialized<--
22:06:39 T:1168 M:4015378432   ERROR: XFILE::CPluginDirectory::SetContent called with an invalid handle.
22:06:39 T:5860 M:4014129152  NOTICE: DVDPlayer: Opening: rar://C%3a%5cnzbs%5cincomplete%5cFriends%2ewith%2eBenefits%2eS01E03%2e720p%2eHDTV%2eX264%2dDIMENSION%5cfriends%2ewith%2ebenefits%2e103%2e720p%2ddimension%2erar/Friends.with.Benefits.S01E03.720p.HDTV.X264-DIMENSION.mkv
22:06:39 T:5860 M:4014129152 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:06:39 T:3204 M:4014088192  NOTICE: Creating InputStream
22:06:39 T:3204 M:4020609024  NOTICE: Creating Demuxer
22:06:40 T:3204 M:4016009216   ERROR: XFILE::CFile::Read : Access violation at 0x009d1faa: Reading location 0x08c94c6d
22:06:53 T:1168 M:4041084928   ERROR: Error Type: exceptions.OSError
22:06:53 T:1168 M:4041084928   ERROR: Error Contents: (13, 'Permission denied', 'C:\\nzbs\\incomplete\\Friends.with.Benefits.S01E03.720p.HDTV.X264-DIMENSION\\friends.with.benefits.103.720p-dimension.r17')
22:06:53 T:1168 M:4041039872   ERROR: Traceback (most recent call last):
                                              File "C:\Users\timgt\AppData\Roaming\XBMC\addons\plugin.video.nzbs\default.py", line 720, in ?
                                                get_nzb(params)
                                              File "C:\Users\timgt\AppData\Roaming\XBMC\addons\plugin.video.nzbs\default.py", line 235, in get_nzb
                                                get_rar(nzbname)
                                              File "C:\Users\timgt\AppData\Roaming\XBMC\addons\plugin.video.nzbs\default.py", line 321, in get_rar
                                                return play_video(video_params)
                                              File "C:\Users\timgt\AppData\Roaming\XBMC\addons\plugin.video.nzbs\default.py", line 519, in play_video
                                                os.remove(filename)
                                            OSError: (13, 'Permission denied', 'C:\\nzbs\\incomplete\\Friends.with.Benefits.S01E03.720p.HDTV.X264-DIMENSION\\friends.with.benefits.103.720p-dimension.r17')
22:07:00 T:5236 M:4047446016  NOTICE: ES: Client  from 192.168.1.153 timed out
22:07:10 T:3204 M:4042399744   ERROR: XFILE::CFileRar::Seek - Timeout waiting for buffer to empty
22:07:10 T:3204 M:4041502720 WARNING: could not find codec parameters for rar://C%3a%5cnzbs%5cincomplete%5cFriends%2ewith%2eBenefits%2eS01E03%2e720p%2eHDTV%2eX264%2dDIMENSION%5cfriends%2ewith%2ebenefits%2e103%2e720p%2ddimension%2erar/Friends.with.Benefits.S01E03.720p.HDTV.X264-DIMENSION.mkv
22:07:10 T:3204 M:4042608640   ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
22:07:10 T:3204 M:4042608640  NOTICE: CDVDPlayer::OnExit()
22:07:10 T:3204 M:4042874880  NOTICE: CDVDPlayer::OnExit() deleting input stream
22:07:10 T:5860 M:4043710464   ERROR: Control 402 in window 10107 has been asked to focus, but it can't
22:07:10 T:5860 M:4043706368  NOTICE: CDVDPlayer::CloseFile()
22:07:10 T:5860 M:4043706368 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:07:10 T:5860 M:4043706368  NOTICE: DVDPlayer: waiting for threads to exit
22:07:10 T:5860 M:4043706368  NOTICE: DVDPlayer: finished waiting



- Popeye - 2011-09-18

Thanks timgt. From you logs it looks like a read error or something. What could be happening is that xbmc is a bit slow starting to play the movie and my script tries to remove the files since the timer has timed out...
default.py line 504
Code:
while (wait <= 10):
            time.sleep(1)
            wait+= 1
            if xbmc.Player().isPlayingVideo():
                break

I have had some issues also and have begun to suspect this. Could you try changing it to 20-30ish and see if it helps?


- speed32219 - 2011-09-19

git error on downloading the latest. download error - The requested URL returned error: 403


- timgt - 2011-09-19

Popeye, I tried your suggestion by changing the 10 to a 30 but still get the same error.

Whats wierd is that the video doesn't start playing, so I try to go back to the main screen on your plugin where i can pick my incomplete folder and try to play it directly from within that folder and it still doesnt play. After the download is finished it then DOES play if I click it from within your plugin in the incomplete directory. Wierd huh?


- Popeye - 2011-09-19

timgt Wrote:Popeye, I tried your suggestion by changing the 10 to a 30 but still get the same error.

Whats wierd is that the video doesn't start playing, so I try to go back to the main screen on your plugin where i can pick my incomplete folder and try to play it directly from within that folder and it still doesnt play. After the download is finished it then DOES play if I click it from within your plugin in the incomplete directory. Wierd huh?

If that is the case there must be something with how the movie is stored in the rar set. Since you had read errors in the log it cold be the case that xbmc tried to read data further into the movie (or even the end that we don't have).
If you have the time you could help out with a test.
1, With the movie in the incomplete folder try moving some of the last rar packages and try to play the movie.
2, try moving some of the rars in the middle and leave at least the first and the last
If 1 fails and 2 succeeds, then we might have a solution, else I'm just confused Big Grin