Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CLegacyPathTranslation Class Reference

Translates old internal paths into new ones. More...

#include <LegacyPathTranslation.h>

Static Public Member Functions

static std::string TranslateVideoDbPath (const CURL &legacyPath)
 Translates old videodb:// paths to new ones.
 
static std::string TranslateVideoDbPath (const std::string &legacyPath)
 
static std::string TranslateMusicDbPath (const CURL &legacyPath)
 Translates old musicdb:// paths to new ones.
 
static std::string TranslateMusicDbPath (const std::string &legacyPath)
 

Detailed Description

Translates old internal paths into new ones.

Translates old videodb:// and musicdb:// paths which used numbers to indicate a specific category to new paths using more descriptive strings to indicate categories.

Member Function Documentation

◆ TranslateMusicDbPath() [1/2]

std::string CLegacyPathTranslation::TranslateMusicDbPath ( const CURL & legacyPath)
static

Translates old musicdb:// paths to new ones.

Parameters
legacyPathPath in the old musicdb:// format using numbers
Returns
Path in the new musicdb:// format using descriptive strings

◆ TranslateMusicDbPath() [2/2]

std::string CLegacyPathTranslation::TranslateMusicDbPath ( const std::string & legacyPath)
static

◆ TranslateVideoDbPath() [1/2]

std::string CLegacyPathTranslation::TranslateVideoDbPath ( const CURL & legacyPath)
static

Translates old videodb:// paths to new ones.

Parameters
legacyPathPath in the old videodb:// format using numbers
Returns
Path in the new videodb:// format using descriptive strings

◆ TranslateVideoDbPath() [2/2]

std::string CLegacyPathTranslation::TranslateVideoDbPath ( const std::string & legacyPath)
static

The documentation for this class was generated from the following files: