Downloads:

98,279

Downloads of v 1.3.11:

6,440

Last Update:

8/23/2016

Package Maintainer(s):

Software Author(s):

  • Peter Pawlowski

Tags:

foobar2000 media player admin

foobar2000

This is not the latest version of foobar2000 available.

1.3.11 | Updated: 8/23/2016

Downloads:

98,279

Downloads of v 1.3.11:

6,440

Maintainer(s):

Software Author(s):

  • Peter Pawlowski

foobar2000 1.3.11

This is not the latest version of foobar2000 available.

Some Checks Have Failed or Are Not Yet Complete

1 Test Passing and 1 Failing Test


Validation Testing Passed


Verification Testing Failed

Details

To install foobar2000, run the following command from the command line or from PowerShell:

>

To upgrade foobar2000, run the following command from the command line or from PowerShell:

>

To uninstall foobar2000, 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 foobar2000 -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 foobar2000 -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 foobar2000 installed
  win_chocolatey:
    name: foobar2000
    state: present
    version: 1.3.11
    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 'foobar2000' do
  action    :install
  version  '1.3.11'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: foobar2000,
    Version: 1.3.11,
    Source: STEP 3 URL
);

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


cChocoPackageInstaller foobar2000
{
   Name     = 'foobar2000'
   Ensure   = 'Present'
   Version  = '1.3.11'
   Source   = 'STEP 3 URL'
}

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


package { 'foobar2000':
  provider => 'chocolatey',
  ensure   => '1.3.11',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install foobar2000 version="1.3.11" 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.

This package was approved as a trusted package on 8/23/2016.

Description

foobar2000 is an advanced freeware audio player for the Windows platform. Some of the basic features include full unicode support, ReplayGain support and native support for several popular audio formats.


tools\chocolateyInstall.ps1
$packageName = "foobar2000"
$fileType = "exe"
$silentArgs = "/S"
$pwd = "$(split-path -parent $MyInvocation.MyCommand.Definition)"

Import-Module "$($pwd)\Get-FilenameFromRegex.ps1" -Force
# Why does an import failure on this module not throw an error?

$ErrorActionPreference = "Stop"

try {
  $url1 = Get-FilenameFromRegex "http://www.filehippo.com/download_foobar2000/history/" 'download_foobar2000/([\d]+)/"[^>]*>Foobar2000 1.3.11<' 'http://www.filehippo.com/download_foobar2000/$1/'
} catch {
  Write-Host "Looking for alternative url"
  $latestVersion = Get-FilenameFromRegex "http://www.filehippo.com/download_foobar2000/" 'itemprop\=\"name\"\>[\s\r\n]*Foobar2000 (1.3.11)<' '$1'
  if ($latestVersion -ne '') {
    Write-Host "Attempting to find url for latest version"
    $url1 = Get-FilenameFromRegex "http://www.filehippo.com/download_foobar2000/" 'download_foobar2000/download/([\w\d]+)/[^>]*>[\s\r\n]*<span>Download Latest Version<' 'http://www.filehippo.com/en/download_foobar2000/download/$1/'
  }
}

Write-Host "Found URL that redirects to the download url: $url1"

$url2 = Get-FilenameFromRegex "$url1" 'download_foobar2000/download/([\w\d]+)/' 'http://www.filehippo.com/en/download_foobar2000/download/$1/'
Write-Host "Found secondary url that redirects to the download url: $url2"

$url3 = Get-FilenameFromRegex "$url2" '/download/file/([\w\d]+)/' 'http://www.filehippo.com/download/file/$1/'
Write-Host "Found download URL: $url3"

Install-ChocolateyPackage $packageName $fileType $silentArgs $url3

tools\Get-FilenameFromRegex.ps1
# Redsandro - I will just include the required module in the package as long as it is not merged with Chocolatey

# Some files have a changing element/hash in the download path, making an automated download harder.
# This file gets the correct download url from a download page with a regular expression.
# Good for e.g. Foobar2000, Rename Master, etc
#
# Usage: Get-FilenameFromRegex download_page find replace
# Examples:
# Get-FilenameFromRegex "http://www.joejoesoft.com/vcms/hot/userupload/8/files/rmv303.zip" '/cms/file.php\?f=userupload/8/files/rmv303.zip&amp;c=([\w\d]+)' 'http://www.joejoesoft.com/sim/$1/userupload/8/files/rmv303.zip'
#
# Remember to escape regex characters, like the question mark in the querystring

function Get-FilenameFromRegex {
param(
    [string]$source_url,
    [string]$find,
    [string]$replace
)
  ## Example # $source_url = "http://www.joejoesoft.com/vcms/hot/userupload/8/files/rmv303.zip"
  ## Example # $find = '/cms/file.php\?f=userupload/8/files/rmv303.zip&amp;c=([\w\d]+)'
  ## Example # $replace = 'http://www.joejoesoft.com/sim/$1/userupload/8/files/rmv303.zip'

  $ErrorActionPreference = "Stop"
  
  # Download and open download page
  $wc = new-object system.net.webclient
  $wc.UseDefaultCredentials = $true
  $html = $wc.downloadstring($source_url)

  $nothing =''+$html -cmatch $find
  #if ($matches -eq $null) {
  #  throw "No matches found"
  #}
  # Replace Match-references with previous matches: $1 $2 -> $matches[1] $matches[2]
  #$download_url = $replace -creplace "\$`(\d+)",$matches[$1]
  # This one is not working :(
  # I have a temporary fix that only allows ONE match. However, in most cases we only need one match.
  $download_url = $replace -creplace "\$`(\d+)",$matches[1]

  return $download_url
}


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
foobar2000 1.5-beta8 91 Wednesday, August 7, 2019 Approved
foobar2000 1.5-beta7 19 Wednesday, August 7, 2019 Approved
foobar2000 1.5-beta5 53 Wednesday, July 17, 2019 Approved
foobar2000 1.5-beta2 44 Thursday, July 11, 2019 Approved
foobar2000 1.5-beta16 12 Sunday, September 22, 2019 Approved
foobar2000 1.5-beta12 11 Saturday, September 7, 2019 Approved
foobar2000 1.5-beta11 16 Friday, August 23, 2019 Approved
foobar2000 1.5-beta10 12 Monday, August 19, 2019 Approved
foobar2000 1.4.6 5924 Monday, July 8, 2019 Approved

This package has no dependencies.

Discussion for the foobar2000 Package

Ground Rules:

  • This discussion is only about foobar2000 and the foobar2000 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 foobar2000, 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