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 - mzup - 2013-10-22

OK. Will check it out. As I had mentioned in my first post about this is that it works with the stable version. But I can wait till end of week if I can't find anything in xml file.

Thanks


Re: RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2013-10-22

(2013-10-22, 21:30)mzup Wrote: OK. Will check it out. As I had mentioned in my first post about this is that it works with the stable version. But I can wait till end of week if I can't find anything in xml file.

Thanks

Don't use stable use master git.


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Daavid - 2013-10-22

(2013-10-20, 19:18)Lunatixz Wrote: Auto tune already query json for TV, movies and music then builds channels off of that data, which is what xbmclibrary does. It query plugin directory's ... So it should work...

What about plugins like FilmOn for instance? Will it / Is it be possible to link into and pull channels from the way the TV Guide plugin can?


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - puenktchen - 2013-10-23

(2013-10-22, 21:20)Lunatixz Wrote:
(2013-10-22, 20:40)mzup Wrote:
(2013-10-22, 20:34)Lunatixz Wrote: If u downloaded the preview file stop using it.... Go back to the master git...

If you are not using the preview send me your logs and details on the problem. Posting your configuration won't help me fix your problem.

Not using preview file.

https://www.dropbox.com/s/lcphyvny4tc3jvy/xbmc.log

Have just one type 8 channel set up for espn2. Used scilz link so I know stream works. When I open PTVL it goes to black screen after it updates the channels.

A black screen always indicates a problem with your xmltv file... are you using a xmltv file? did you verify the xmltv has information matching the channel id?

This is fixed in my latest being pushed this week... no more black screen, but if your channel is setup incorrectly or missing it's xmltv data it will be skipped...

Same problem here with channeltype 8, xmltv and lastes git master.
I have als the same exception in my xbmc.log like "mzup".
The channel id i use is 100% correct!


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2013-10-23

(2013-10-23, 00:13)pünktchen Wrote:
(2013-10-22, 21:20)Lunatixz Wrote:
(2013-10-22, 20:40)mzup Wrote: Not using preview file.

https://www.dropbox.com/s/lcphyvny4tc3jvy/xbmc.log

Have just one type 8 channel set up for espn2. Used scilz link so I know stream works. When I open PTVL it goes to black screen after it updates the channels.

A black screen always indicates a problem with your xmltv file... are you using a xmltv file? did you verify the xmltv has information matching the channel id?

This is fixed in my latest being pushed this week... no more black screen, but if your channel is setup incorrectly or missing it's xmltv data it will be skipped...

Same problem here with channeltype 8, xmltv and lastes git master.
I have als the same exception in my xbmc.log like "mzup".
The channel id i use is 100% correct!

Log? did you set the xmltv path in PTVL settings ?.... ahh I know why...

you're not using the standardized xmltv format... don't use encoding="UTF-8"?> use encoding="ISO-8859-1"?>
This should be the default setting for all xmltv grabbers, make sure you didn't select utf-8, delete current xmltv and rebuild. Make sure it was encoded properly.


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - chris0147 - 2013-10-23

hey guys, I'm interesting to make my own xbmc. So i would like to ask you some questions.

When I set up the channels menu with the tv guide, when I select on any channel to press it, would I be able to watch live stream in small screen before go on the big screen?

When i select on the channel menu, tv guide or when i watch on the live stream depends on what channel i watch, when i switch off the set top box and then turn it on, would i be able to return it where i was before i turn it off?

Can I make my own design for the mini guide and tv guide?

Does xbmc support rtmp, rtmpe, rtsp, http, mms, udp and m3u8 live streaming?

Can I records any range of channels?


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - scilz - 2013-10-23

(2013-10-23, 00:55)chris0147 Wrote: hey guys, I'm interesting to make my own xbmc. So i would like to ask you some questions.

When I set up the channels menu with the tv guide, when I select on any channel to press it, would I be able to watch live stream in small screen before go on the big screen?

When i select on the channel menu, tv guide or when i watch on the live stream depends on what channel i watch, when i switch off the set top box and then turn it on, would i be able to return it where i was before i turn it off?

Can I make my own design for the mini guide and tv guide?

Does xbmc support rtmp, rtmpe, rtsp, http, mms, udp and m3u8 live streaming?

Can I records any range of channels?
you are asking this stuff in the wrong place try tvguidethread or general thread.


AW: RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - puenktchen - 2013-10-23

(2013-10-23, 00:40)Lunatixz Wrote: Log? did you set the xmltv path in PTVL settings ?.... ahh I know why...

you're not using the standardized xmltv format... don't use encoding="UTF-8"?> use encoding="ISO-8859-1"?>
This should be the default setting for all xmltv grabbers, make sure you didn't select utf-8, delete current xmltv and rebuild. Make sure it was encoded properly.
It is "ISO-8859-1". The file was generated by "mc2xml" without -U parameter. Checked the file with notepad++.


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2013-10-23

(2013-10-23, 01:36)pünktchen Wrote:
(2013-10-23, 00:40)Lunatixz Wrote: Log? did you set the xmltv path in PTVL settings ?.... ahh I know why...

you're not using the standardized xmltv format... don't use encoding="UTF-8"?> use encoding="ISO-8859-1"?>
This should be the default setting for all xmltv grabbers, make sure you didn't select utf-8, delete current xmltv and rebuild. Make sure it was encoded properly.
It is "ISO-8859-1". The file was generated by "mc2xml" without -U parameter. Checked the file with notepad++.

then I don't know... you need to troubleshoot on your end... Since everything works with chtype 8 (I use it daily).

Check xmltv... make sure all channel ids match

Check that the xmltv has current data, old information is the same as not having an xmltv file at all...

Check source does the strm play outside of PTVL?

Are you running latest master?

Delete your PTVL cache folder...

Set path for xmltv in PTVL settings...

double check settings2.xml try using only one channel and test.

thats all I can think of...


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - puenktchen - 2013-10-23

I've found a workaround, but i don't know what this effects:
The xbmc.log says:
Code:
File "C:\Users\pünktchen\AppData\Roaming\XBMC\addons\script.pseudotv.live\resources\lib\ChannelList.py", line 1707, in buildLiveTVFileList
tmpstr = str(dur) + ',' + title + "//" + "LiveTV" + "//" + description + "//" + '\n' + url
UnboundLocalError: local variable 'dur' referenced before assignment

So i've changed ChannelList.py to this and it works:
Code:
if tvdbid > 0:
           dur = (stopDate - startDate).seconds
            # tmpstr = str(dur) + ',' + title + "//" + "LiveTV" + "//" + description + "//" + str(tvposterurl) + '\n' + url
            tmpstr = str(dur) + ',' + title + "//" + "LiveTV" + "//" + description + "//" + '\n' + url
elif imdbid > 0:
            dur = (stopDate - startDate).seconds
             # tmpstr = str(dur) + ',' + title + "//" + "LiveMovie" + "//" + description + "//" + str(moviePosterUrl) + '\n' + url
             tmpstr = str(dur) + ',' + title + "//" + "LiveMovie" + "//" + description + "//" + '\n' + url
else:
            dur = (stopDate - startDate).seconds
            tmpstr = str(dur) + ',' + title + "//" + "LiveTV" + "//" + description + "//" + '\n' + url



RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2013-10-23

I think you're running an old copy...

you should have that already in your code it should look like this:
Code:
now = datetime.datetime.now()
                        stopDate = self.parseXMLTVDate(elem.get('stop'))
                        startDate = self.parseXMLTVDate(elem.get('start'))

                        #skip old shows that have already ended
                        if now > stopDate:
                            self.log("buildLiveTVFileList  CHANNEL: " + str(self.settingChannel) + "  OLD: " + title)
                            self.log("Unaired = " + str(new) + " tvdbid = " + str(tvdbid) + " imdbid = " + str(imdbid) + " episodeId = " + str(episodeId) + " seasonNumber = " + str(seasonNumber) + " episodeNumber = " + str(episodeNumber) + " category = " + str(category) + " sbManaged =" + str(sbManaged) + " cpManaged =" + str(cpManaged))      
                            continue
                        
                        #adjust the duration of the current show
                        if now > startDate and now < stopDate:
                            try:
                                #dur = ((stopDate - startDate).seconds)
                                dur = ((stopDate - startDate).seconds) - ((now - startDate).seconds)
                                self.log("buildLiveTVFileList  CHANNEL: " + str(self.settingChannel) + "  NOW PLAYING: " + title + "  DUR: " + str(dur))
                                self.log("Unaired = " + str(new) + " tvdbid = " + str(tvdbid) + " imdbid = " + str(imdbid) + " episodeId = " + str(episodeId) + " seasonNumber = " + str(seasonNumber) + " episodeNumber = " + str(episodeNumber) + " category = " + str(category) + " sbManaged =" + str(sbManaged) + " cpManaged =" + str(cpManaged))      
                            except:
                                dur = 3600  #60 minute default
                                self.log("buildLiveTVFileList  CHANNEL: " + str(self.settingChannel) + " - Error calculating show duration (defaulted to 60 min)")
                                raise
                        
                        #use the full duration for an upcoming show
                        if now < startDate:
                            try:
                                dur = (stopDate - startDate).seconds
                                self.log("buildLiveTVFileList  CHANNEL: " + str(self.settingChannel) + "  UPCOMING: " + title + "  DUR: " + str(dur))
                                self.log("Unaired = " + str(new) + " tvdbid = " + str(tvdbid) + " imdbid = " + str(imdbid) + " episodeId = " + str(episodeId) + " seasonNumber = " + str(seasonNumber) + " episodeNumber = " + str(episodeNumber) + " category = " + str(category) + " sbManaged =" + str(sbManaged) + " cpManaged =" + str(cpManaged))  
                            except:
                                dur = 3600  #60 minute default
                                self.log("buildLiveTVFileList  CHANNEL: " + str(self.settingChannel) + " - Error calculating show duration (defaulted to 60 min)")
                                raise

                        if tvdbid > 0:
                            # tmpstr = str(dur) + ',' + title + "//" + "LiveTV" + "//" + description + "//" + str(tvposterurl) + '\n' + url
                            tmpstr = str(dur) + ',' + title + "//" + "LiveTV" + "//" + description + "//" + '\n' + url
                        elif imdbid > 0:
                            # tmpstr = str(dur) + ',' + title + "//" + "LiveMovie" + "//" + description + "//" + str(moviePosterUrl) + '\n' + url
                            tmpstr = str(dur) + ',' + title + "//" + "LiveMovie" + "//" + description + "//" + '\n' + url
                        else:
                            tmpstr = str(dur) + ',' + title + "//" + "LiveTV" + "//" + description + "//" + '\n' + url                      

                        tmpstr = tmpstr.replace("\\n", " ").replace("\\r", " ").replace("\\\"", "\"")

                        showList.append(tmpstr)
                    else:
                        if inSet == True:
                            self.log("buildLiveTVFileList  CHANNEL: " + str(self.settingChannel) + "  DONE")
                            break
                    showcount += 1
                    
            root.clear()



RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2013-10-23

I finally tracked down my problem with autotuning not working on my Dev PC and working fine on my HTPC... Weeks of pulling my hair and it was a stupid advancedsettings.xml switch...

Code:
    <samba>
        <clienttimeout>15</clienttimeout>  <!-- timeout (in seconds) -->
        <!-- <statfiles>false</statfiles>  <!-- Set to false to disable smb stat() on files to speed up listings of large directories (over slow links) --> -->
    </samba>

statfiles, apparently blinds PTVL to json request info from smb sources!! When I push auto tuning it will come with a disclaimer to disable this switch if enabled.


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - Lunatixz - 2013-10-23

Going to push the auto-tune feature before the end of the week. It will be labeled in commit as "auto-tune experimental".
Since it's based on your collection and random choices; There may be tons of bugs!! So I would backup any configuration files (cache folder, settings2.xml) before installing.

This wouldn't be for the users who depend on PTVL for everyday TV viewing, but more for testing purposes... The sooner users report bugs and problems; the faster I can get it finished Smile

Post 1 was updated with the latest stable version before I pushed the updates...

Auto-tuning will control channel ordering based on your selection of options. Once auto-tuning is complete you can add traditional channels using whatever method you used previously.
It will also build clean each time it's activated; and builds using all media mapped to XBMC (so large collections will take sometime to build).

There will be a recovery option for users who want to undo auto-tuning after it runs.

Auto-tuning options will include:
  • LiveTV:
    • USTVnow w/EPG
    • HDhomerun (coming soon)
  • TV Network
  • Movie Studios
  • TV Genres
  • Movie Genres
  • Mixed TV/Movie Genres
  • Music Genres
    Music Videos:
    • Youtube
    • VevoTV
    • Local Directory
  • InternetTV (coming soon)
  • User selected addons/plugins (coming soon)

Thanks for your support!


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - mzup - 2013-10-23

Went and installed latest master nightly and it states dependencies not met. What needs to be installed?


RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - scilz - 2013-10-23

i have worked out a way around dead strms. i noticed that dead strms usually come back on at some point and there are usually a few strms for each channel online somewhere. example i have 3 espn2 strms and they go out sometimes but i have never had all 3 out at the same time. so i put all 3 in a strm file then used directory channel in ptvl and point to that strm file. all works great except now i don't have xmltv info for that channel cause it is a directory. so what i am asking is if anyone knows of a way to use xmltv data with a directory channel or has any ideas for another work around.