Downloads:

396

Downloads of v 2016.12.30:

396

Last Update:

11/6/2016

Package Maintainer(s):

Software Author(s):

  • tivoguy

Tags:

tivo tivotogo plex admin

TiVoToGo for Plex

2016.12.30 | Updated: 11/6/2016

Downloads:

396

Downloads of v 2016.12.30:

396

Maintainer(s):

Software Author(s):

  • tivoguy

TiVoToGo for Plex 2016.12.30

This Package Contains an Exempted Check

1 Test Passing and 1 Exempted Test


Validation Testing Passed


Verification Testing Exempt:

All of my -plex packages are going to require an exception since they depend on plexmediaserver which has an exception of
"This package skips automatic verification:

Dependency requires a reboot, which is not handled by verifier."

To install TiVoToGo for Plex, run the following command from the command line or from PowerShell:

>

To upgrade TiVoToGo for Plex, run the following command from the command line or from PowerShell:

>

To uninstall TiVoToGo for Plex, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade tivotogo-plex -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade tivotogo-plex -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure tivotogo-plex installed
  win_chocolatey:
    name: tivotogo-plex
    state: present
    version: 2016.12.30
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'tivotogo-plex' do
  action    :install
  version  '2016.12.30'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: tivotogo-plex,
    Version: 2016.12.30,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller tivotogo-plex
{
   Name     = 'tivotogo-plex'
   Ensure   = 'Present'
   Version  = '2016.12.30'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'tivotogo-plex':
  provider => 'chocolatey',
  ensure   => '2016.12.30',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install tivotogo-plex version="2016.12.30" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved by moderator gep13 on 12/7/2016.

Description

This Plex plugin uses the TiVo To Go API to watch a stream off a TiVo or to download a recorded program from the TiVo. It requires a Series 2 or newer TiVo with an ethernet connection. The Plex Server needs to have a high speed connection between itself and the TiVo.

Q: What would I use this channel for?

A: You browse to a show on your TiVo and watch it without downloading it to the Plex Server.

Q: Can I download something from the TiVo it to the Plex Server using this channel?

A: Yes! If you enable the TiVoToGo service, and fill in a folder name, the channel will have extra entries to allow you to download the content.

NOTE: You should create a library on your Plex server which points to the same directory which you are downloading the file into. If you name the Plex library "TiVo To Go" it will automatically get refreshed when downloads are initiated and when they complete. If you decide to name the Plex library something different simply add that name in the TiVoToGo preferences.

Requires:

Linux, OSX or Windows Plex Server (No ARM Processor NAS support)
On Linux, OSX or X86 NAS requires curl be installed
To Do:

Use the urllib instead of curl
Stop using /tmp/cookies.txt
Use dynamic sockets and a fixed URL for the live stream video
If the community support for the MPEG-TS improves, add MPEG-TS support, for now it only works with MPEG-PS
Installation Instructions

Install curl if you don't already have it
Copy TiVoToGo.bundle to your plugin directory
Mac: ~/Library/Application Support/Plex Media Server/Plug-ins
Windows: C:\Users[user]\AppData\Local\Plex Media Server\Plug-ins
Linux: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins
Make sure to update the plugins settings
Enter your Media Access Key from the TiVo
Enter a IP address for the TiVo if the Plex Server is on a different subnet and then exit the channel and enter it again.
If you want enable the To Go offline download check the box and fill in a directory that is writable by the plex user.
Contribute to the project if you like! :-)


tools\chocolateyinstall.ps1
$packageName      = 'tivotogo-plex' 
$BundleName       = 'TiVoToGo.bundle'
$url              = 'https://codeload.github.com/tivoguy/TiVoToGo.bundle/zip/master'
$LocalAppDataPath = Get-ItemProperty -path "registry::hkey_current_user\software\Plex, Inc.\Plex Media Server" | select-object -expandproperty LocalAppDataPath

if ($LocalAppDataPath -eq $null) {
   Write-Host "Plex Media Server has not been configured yet!" -ForegroundColor red -BackgroundColor blue
   Write-Host "Creating default directories..." -ForegroundColor green -BackgroundColor blue
   New-Item "$env:LOCALAPPDATA\Plex" -Type Directory -force
   New-Item "$env:LOCALAPPDATA\Plex\Plex Media Server" -Type Directory -force
   New-Item "$env:LOCALAPPDATA\Plex\Plex Media Server\Plug-ins" -Type Directory -force
   $LocalAppDataPath = "$env:LOCALAPPDATA\Plex"
  }
$UnZipDir         = Join-Path -Path $LocalAppDataPath -ChildPath "Plex Media Server\Plug-ins"

$packageArgs = @{
  packageName   = $packageName
  unzipLocation = $UnZipDir
  fileType      = 'ZIP' 
  url           = $url
  checksum      = '95765ECFC6A9BDCEB223BC435208F5AD4FC955F752E8F68674E21749F84BF2F6'
  checksumType  = 'sha256'  
}

Install-ChocolateyZipPackage @packageArgs

$strFileName="$LocalAppDataPath\Plex Media Server\Plug-ins\$BundleName.old"
If (Test-Path $strFileName){
  Write-Host "Removing previous .old version." -ForegroundColor green -BackgroundColor blue
  Remove-Item "$UnZipDir\$BundleName.old" -recurse
}Else{
  Write-Host ".old version does not exist." -ForegroundColor green -BackgroundColor blue
}

$strFileName="$LocalAppDataPath\Plex Media Server\Plug-ins\$BundleName"
If (Test-Path $strFileName){
  Write-Host "Renaming previous version .old." -ForegroundColor green -BackgroundColor blue
  Rename-Item "$UnZipDir\$BundleName" "$BundleName.old"
}Else{
  Write-Host "No previous version exists." -ForegroundColor green -BackgroundColor blue
}

Rename-Item "$UnZipDir\$BundleName-master" $BundleName
Write-Host "You can ignore Only an exit code of non-zero will fail... messages." -ForegroundColor green -BackgroundColor blue
tools\ChocolateyUninstall.ps1
$packageName      = 'tivotogo-plex' 
$BundleName       = 'TiVoToGo.bundle'
$LocalAppDataPath = Get-ItemProperty -path "registry::hkey_current_user\software\Plex, Inc.\Plex Media Server" | select-object -expandproperty LocalAppDataPath

if ($LocalAppDataPath -eq $null) {
   Write-Host "Plex Media Server has not been configured yet!" -ForegroundColor red -BackgroundColor blue
   $LocalAppDataPath = "$env:LOCALAPPDATA\Plex"
  }
$UnZipDir         = Join-Path -Path $LocalAppDataPath -ChildPath "Plex Media Server\Plug-ins"

$strFileName="$LocalAppDataPath\Plex Media Server\Plug-ins\$BundleName.old"
If (Test-Path $strFileName){
  Write-Host "Removing previous .old version." -ForegroundColor green -BackgroundColor blue
  Remove-Item "$UnZipDir\$BundleName.old" -recurse
}Else{
  Write-Host ".old version does not exist." -ForegroundColor green -BackgroundColor blue
}

$strFileName="$LocalAppDataPath\Plex Media Server\Plug-ins\$BundleName"
If (Test-Path $strFileName){
  Write-Host "Removing $packageName" -ForegroundColor green -BackgroundColor blue
  Remove-Item "$UnZipDir\$BundleName" -recurse
}Else{
  Write-Host "ERROR: No previous version exists." -ForegroundColor green -BackgroundColor blue
}
  Write-Host "You can ignore Only an exit code of non-zero will fail... messages." -ForegroundColor green -BackgroundColor blue


In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Discussion for the TiVoToGo for Plex Package

Ground Rules:

  • This discussion is only about TiVoToGo for Plex and the TiVoToGo for Plex package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or TiVoToGo for Plex, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus