Kodi Community Forum
[OLD/CLOSED] PseudoTV Live - Set-Top box solution - 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)
+----- Forum: PseudoTV / PseudoTV Live (https://forum.kodi.tv/forumdisplay.php?fid=231)
+----- Thread: [OLD/CLOSED] PseudoTV Live - Set-Top box solution (/showthread.php?tid=169032)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Rastan - 2014-01-29

Hi Lunatixz,

I have just downloaded and installed the newest XBMC Gotham Nightly and your latest PTVL, Unfortunately I have some problems. I have already set up my bumpers and trailers and it has worked perfectly with previous versions. The latest updates make PTVL skip all my adverts, bumpers and trailers which are interleaved directory folders.
Another thing is that it has skipped my channel 3 completely, which is a movie channel of the Action genre.

On a plus note my channels scan MUCH faster!

Here is a LOG hoping you can see what happened. I stopped PTVL halfway through completing a force refresh as the file size of the log was getting big. Please let me know if I can provide you with anything else.


**EDIT**

I have tried both with and without the C drive (root) from the sources but still have the same problem.


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - heinzelm - 2014-01-29

Hi, an issue here on channel configuration. On TV Genres, but especially when I want to choose a single TV Series, I can select e.g. from my series with first letter A to D, then it begins at A again. When I choose from the end, I get e.g. Z to S. All my series between D and S are not selectable. With TV genres it's similiar but not that serious: I get A to K and Z to M for example, so there isn't really a lot missing (and of course, there are not so much genres at all). Where is the problem?


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2014-01-29

(2014-01-29, 16:54)Rastan Wrote: Hi Lunatixz,

I have just downloaded and installed the newest XBMC Gotham Nightly and your latest PTVL, Unfortunately I have some problems. I have already set up my bumpers and trailers and it has worked perfectly with previous versions. The latest updates make PTVL skip all my adverts, bumpers and trailers which are interleaved directory folders.
Another thing is that it has skipped my channel 3 completely, which is a movie channel of the Action genre.

On a plus note my channels scan MUCH faster!

Here is a LOG hoping you can see what happened. I stopped PTVL halfway through completing a force refresh as the file size of the log was getting big. Please let me know if I can provide you with anything else.


**EDIT**

I have tried both with and without the C drive (root) from the sources but still have the same problem.


Try adding the root where your directory is located D:\.
I believe the problem is the new "security" feature they added that blocks json request unless from a whitelist. You can only add to the whitelist by adding the drive as a source.
So you might have to put all your BCT's into one root folder ie.
D:\BCTs\Bumper
D:BCTs\trailers
Etc, and add BCTs folder as a source.


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Rastan - 2014-01-29

Hi again Lunatixz,

Thanks for the reply. I tried your suggestions but the problems still remain.

I have all my bumpers, trailers and adverts in one folder on my S:/ partition.

S:/BUMPERS/Adverts
S:/BUMPERS/Animal Planet
S:/BUMPERS/Animax
S:/BUMPERS/Crime Investigation
S:/BUMPERS/Trailers
..etc


I tried re-adding root C:/ D:/ and S:/ but PTVL still ignores them. Plus it is skipping most of my movie channels now Confused

I have uploaded another LOG if that helps.


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Rastan - 2014-01-29

(2014-01-29, 08:49)Lunatixz Wrote: ::Update::
Master git updated with:
  • Improved "Enhanced" LiveTV Parsing.
    Couchpotato Movie indicator.
    'Failed Playback' Error handling...
    Gotham Support (no need to add root drive).
    Offair Video Selector (Local/Plugin Strm fallback video).
    Option to ignore strm files (Globally across all channels).

I have done a bit of digging to see what my problem may be. I first tried rolling back to a previous nightly but the problem remained. I then went back to an earlier version of PTVL dated Jan 26, 2014 and all my problems vanished. Sorry to say it looks like when you made it Gotham ready on Jan 28, 2014 something broke (For me at least).

I would also like to add with the latest nightly I still have to add C:/ root directory else PTVL doesnt work properly.

I hope you find this info helpful and thanks for all your hard work Wink


Re: RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2014-01-29

(2014-01-29, 23:47)Rastan Wrote:
(2014-01-29, 08:49)Lunatixz Wrote: ::Update::
Master git updated with:
  • Improved "Enhanced" LiveTV Parsing.
    Couchpotato Movie indicator.
    'Failed Playback' Error handling...
    Gotham Support (no need to add root drive).
    Offair Video Selector (Local/Plugin Strm fallback video).
    Option to ignore strm files (Globally across all channels).

I have done a bit of digging to see what my problem may be. I first tried rolling back to a previous nightly but the problem remained. I then went back to an earlier version of PTVL dated Jan 26, 2014 and all my problems vanished. Sorry to say it looks like when you made it Gotham ready on Jan 28, 2014 something broke (For me at least).

I would also like to add with the latest nightly I still have to add C:/ root directory else PTVL doesnt work properly.

I hope you find this info helpful and thanks for all your hard work Wink

Exactly why I didn't want to touch Gotham till final beta. Thanks for into... Going to drop Gotham support till final beta!


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Martijn - 2014-01-30

Nothing will change till beta unless someone actually tells what's broken. You can drop anything you want but that won't get it fixed and beta will still be screwed up.
Who knows it could as well be in your code.


Re: RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2014-01-30

(2014-01-30, 00:03)Martijn Wrote: Nothing will change till beta unless someone actually tells what's broken. You can drop anything you want but that won't get it fixed and beta will still be screwed up.

I understand. I'm not trying to insult anyone. Just stating the fact that Gotham is still in flux. I don't have the time to track down every change. Makes more sense to wait for a stable release. I'm sure its a minor issue anyway... Just time consuming to traceback.

BTW

I've already suggested changes to gotham that were merged...

And it almost certainly is my code... No fault or finger pointing was intended...


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - User 55003 - 2014-01-30

I'v been looking at PseudoTV in relation to a gotham fix and it turned to be quite simple. you just have to get rid of certian xbmc.translatePath sections in Globals.py

Code:
SETTINGS_LOC = 'special://profile/addon_data/' + ADDON_ID
CHANNEL_SHARING = False
LOCK_LOC = os.path.join(SETTINGS_LOC, 'cache') + '/'

if REAL_SETTINGS.getSetting('ChannelSharing') == "true":
    CHANNEL_SHARING = True
    LOCK_LOC = xbmc.translatePath(os.path.join(REAL_SETTINGS.getSetting('SettingsFolder'), 'cache')) + '/'

IMAGES_LOC = xbmc.translatePath(os.path.join(ADDON_INFO, 'resources', 'images')) + '/'
PRESETS_LOC = xbmc.translatePath(os.path.join(ADDON_INFO, 'resources', 'presets')) + '/'
CHANNELS_LOC = os.path.join(SETTINGS_LOC, 'cache') + '/'
GEN_CHAN_LOC = os.path.join(CHANNELS_LOC, 'generated') + '/'
MADE_CHAN_LOC = os.path.join(CHANNELS_LOC, 'stored') + '/'

Link: Globals.py


Re: RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2014-01-30

(2014-01-30, 04:41)Steveb Wrote: I'v been looking at PseudoTV in relation to a gotham fix and it turned to be quite simple. you just have to get rid of certian xbmc.translatePath sections in Globals.py

Code:
SETTINGS_LOC = 'special://profile/addon_data/' + ADDON_ID
CHANNEL_SHARING = False
LOCK_LOC = os.path.join(SETTINGS_LOC, 'cache') + '/'

if REAL_SETTINGS.getSetting('ChannelSharing') == "true":
    CHANNEL_SHARING = True
    LOCK_LOC = xbmc.translatePath(os.path.join(REAL_SETTINGS.getSetting('SettingsFolder'), 'cache')) + '/'

IMAGES_LOC = xbmc.translatePath(os.path.join(ADDON_INFO, 'resources', 'images')) + '/'
PRESETS_LOC = xbmc.translatePath(os.path.join(ADDON_INFO, 'resources', 'presets')) + '/'
CHANNELS_LOC = os.path.join(SETTINGS_LOC, 'cache') + '/'
GEN_CHAN_LOC = os.path.join(CHANNELS_LOC, 'generated') + '/'
MADE_CHAN_LOC = os.path.join(CHANNELS_LOC, 'stored') + '/'

Link: Globals.py

Yeah, I fixed that already... But it was reported that other newer features stopped working.

Paths were updated in yesterdays update...


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - User 55003 - 2014-01-30

No probs. Are you talking about exclusive features in your live version?

Just looking at your code there may be a few you missed...

LOCK_LOC = xbmc.translatePath(os.path.join(SETTINGS_LOC, 'cache')) + '/'

This is a must for write access for channels!
CHANNELS_LOC = xbmc.translatePath(os.path.join(SETTINGS_LOC, 'cache')) + '/'

unless you just haven't pushed the changes yet.Wink


Re: RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2014-01-30

(2014-01-30, 05:47)Steveb Wrote: No probs. Are you talking about exclusive features in your live version?

Just looking at your code there may be a few you missed...

LOCK_LOC = xbmc.translatePath(os.path.join(SETTINGS_LOC, 'cache')) + '/'

This is a must for write access for channels!
CHANNELS_LOC = xbmc.translatePath(os.path.join(SETTINGS_LOC, 'cache')) + '/'

unless you just haven't pushed the changes yet.Wink

I didn't change the path globally since the issue only applies to json requests... I made my change in the channellist.py. we made the same change just in different places

https://github.com/Lunatixz/script.pseudotv.live/commit/6a877004b9e3b8ad3212c00ae05b6455e791dc24

I might have missed something else... I'll look at your changes.

Any changes and suggestions would be appreciated.

Thanks


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - User 55003 - 2014-01-30

The PR for the json problem was made "read only access", which isn't a problem if you can create the channel.
If you can't create a valid settings2.xml without a direct path, it makes sence you can't create a valid channel.xsp without a direct path also.

CHANNELS_LOC

also affects the vars..

GEN_CHAN_LOC
MADE_CHAN_LOC

plus as you stated ChannelList.py and some others..


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2014-01-30

(2014-01-30, 06:06)Steveb Wrote: The PR for the json problem was made "read only access", which isn't a problem if you can create the channel.
If you can't create a valid settings2.xml without a direct path, it makes sence you can't create a valid channel.xsp without a direct path also.

CHANNELS_LOC

also affects the vars..

GEN_CHAN_LOC
MADE_CHAN_LOC

plus as you stated ChannelList.py and some others..

This isn't completely true... Prior to Jan 25th XBMC Gotham did not allow any access to json from addon_data.
Which is why users were having problems, this issue was resolved. Hence my changes...

Why is it you think there is write issues?? I haven't seen any issues with writing files.

You're misunderstanding the direct path issue. It only applies to Json (which needs a direct path inorder to pass security)... nothing else.
Json in Gotham has security restrictions... now that addon_data is on the whitelist... channels can be parsed and created.


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - User 55003 - 2014-01-30

Yes I know about the json access to addon_data and when it was fixed.
The previous workaround as you know was to add pseudotv's addon_data as a source.

Even with the json fix the workaround was still needed because the addon was having trouble creating its data files in the addon_data folder.
If you try to run pseudotv without the direct paths and the json fix it fails to write settings2.xml and all the channel.xml files are invalid and you get the error (failed to create channels...) .The json problem was not the only problem.

Its just what I've noticed during testing. Take out of this what you will but I have pseudotv working in gotham. Smile

Also I think you'll find that the security issue does not just apply to json but addons in general.