MythTV  master
Functions | Variables
musicutils.cpp File Reference
#include <iostream>
#include <QFile>
#include <QRegExp>
#include <QDir>
#include <mythdirs.h>
#include <mythlogging.h>
#include <mythcorecontext.h>
#include <remotefile.h>
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include "musicmetadata.h"
#include "musicutils.h"
Include dependency graph for musicutils.cpp:

Go to the source code of this file.

Functions

QString filenameFromMetadata (MusicMetadata *track)
 create a filename using the template in the settings and a MusicMetadata object More...
 
bool isNewTune (const QString &artist, const QString &album, const QString &title)
 try to find a track in the db using the given artist, album and title More...
 

Variables

static QRegExp badChars
 
return token
 

Function Documentation

◆ filenameFromMetadata()

QString filenameFromMetadata ( MusicMetadata track)

create a filename using the template in the settings and a MusicMetadata object

Definition at line 77 of file musicutils.cpp.

Referenced by ImportMusicDialog::addPressed(), CDRipperThread::run(), and ImportCoverArtDialog::updateStatus().

◆ isNewTune()

bool isNewTune ( const QString &  artist,
const QString &  album,
const QString &  title 
)

Variable Documentation

◆ badChars

QRegExp badChars
static

Definition at line 24 of file musicutils.cpp.

◆ token

return token