mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-30 15:42:34 +02:00
2020-08-08 Fred Gleason <fredg@paravelsystems.com>
* Added a 'PODCASTS.ORIGIN_LOGIN_NAME' field to the database. * Added a 'PODCASTS.ORIGIN_STATION' field to the database. * Incremented the database version to 330. * Changed the 'Origin' column to 'Start' in the 'Podcast Item List' dialog in rdcastmanager(1). * Added a 'Posted By' column to the 'Podcast Item List' dialog in rdcastmanager(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
a16e1b0dcc
commit
9a428ad855
@ -20170,3 +20170,11 @@
|
||||
item title when posting from a cart/cut.
|
||||
* Modified rdcastmanager(1) to apply the file metadata or filename
|
||||
as the default item title when posting from a file.
|
||||
2020-08-08 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added a 'PODCASTS.ORIGIN_LOGIN_NAME' field to the database.
|
||||
* Added a 'PODCASTS.ORIGIN_STATION' field to the database.
|
||||
* Incremented the database version to 330.
|
||||
* Changed the 'Origin' column to 'Start' in the 'Podcast Item List'
|
||||
dialog in rdcastmanager(1).
|
||||
* Added a 'Posted By' column to the 'Podcast Item List' dialog in
|
||||
rdcastmanager(1).
|
||||
|
@ -20,6 +20,8 @@ ITEM_IMAGE_ID int(11) From FEED_IMAGES.ID
|
||||
AUDIO_FILENAME varchar(191)
|
||||
AUDIO_LENGTH int(10) unsigned
|
||||
AUDIO_TIME int(10) unsigned
|
||||
ORIGIN_LOGIN_NAME varchar(191) From USERS.LOGIN_NAME
|
||||
ORIGIN_STATION varchar(64) From STATIONS.NAME
|
||||
ORIGIN_DATETIME datetime
|
||||
EFFECTIVE_DATETIME datetime
|
||||
EXPIRATION_DATETIME datetime
|
||||
|
@ -24,7 +24,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 329
|
||||
#define RD_VERSION_DATABASE 330
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
@ -1660,6 +1660,8 @@ unsigned RDFeed::CreateCast(QString *filename,int bytes,int msecs) const
|
||||
"ITEM_LINK=\""+RDEscapeString(q->value(3).toString())+"\","+
|
||||
"ITEM_AUTHOR=\""+RDEscapeString(rda->user()->emailContact())+"\","+
|
||||
"EFFECTIVE_DATETIME=now(),"+
|
||||
"ORIGIN_LOGIN_NAME=\""+RDEscapeString(rda->user()->name())+"\","+
|
||||
"ORIGIN_STATION=\""+RDEscapeString(rda->station()->name())+"\","+
|
||||
"ORIGIN_DATETIME=now(),";
|
||||
if(RDBool(q->value(7).toString())) {
|
||||
sql+=QString().sprintf("STATUS=%d,",RDPodcast::StatusActive);
|
||||
|
@ -233,6 +233,31 @@ void RDPodcast::setItemSourceUrl(const QString &str) const
|
||||
}
|
||||
|
||||
|
||||
QString RDPodcast::originLoginName() const
|
||||
{
|
||||
return RDGetSqlValue("PODCASTS","ID",podcast_id,"ORIGIN_LOGIN_NAME").
|
||||
toString();
|
||||
}
|
||||
|
||||
|
||||
void RDPodcast::setOriginLoginName(const QString &str) const
|
||||
{
|
||||
SetRow("ORIGIN_LOGIN_NAME",str);
|
||||
}
|
||||
|
||||
|
||||
QString RDPodcast::originStation() const
|
||||
{
|
||||
return RDGetSqlValue("PODCASTS","ID",podcast_id,"ORIGIN_STATION").toString();
|
||||
}
|
||||
|
||||
|
||||
void RDPodcast::setOriginStation(const QString &str) const
|
||||
{
|
||||
SetRow("ORIGIN_STATION",str);
|
||||
}
|
||||
|
||||
|
||||
QDateTime RDPodcast::originDateTime() const
|
||||
{
|
||||
return RDGetSqlValue("PODCASTS","ID",podcast_id,
|
||||
|
@ -54,6 +54,10 @@ class RDPodcast
|
||||
void setItemSourceText(const QString &str) const;
|
||||
QString itemSourceUrl() const;
|
||||
void setItemSourceUrl(const QString &str) const;
|
||||
QString originLoginName() const;
|
||||
void setOriginLoginName(const QString &str) const;
|
||||
QString originStation() const;
|
||||
void setOriginStation(const QString &str) const;
|
||||
QDateTime originDateTime() const;
|
||||
void setOriginDateTime(const QDateTime &datetime) const;
|
||||
QDateTime effectiveDateTime() const;
|
||||
|
@ -45,13 +45,11 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
//
|
||||
// Item Origin
|
||||
//
|
||||
cast_item_origin_edit=new QLineEdit(this);
|
||||
cast_item_origin_edit->setReadOnly(true);
|
||||
cast_item_origin_edit->setMaxLength(64);
|
||||
cast_item_origin_label=
|
||||
new QLabel(cast_item_origin_edit,tr("Posted At:"),this);
|
||||
cast_item_origin_label=new QLabel(tr("Posted By")+":",this);
|
||||
cast_item_origin_label->setFont(labelFont());
|
||||
cast_item_origin_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
cast_item_origin_edit=new QLineEdit(this);
|
||||
cast_item_origin_edit->setReadOnly(true);
|
||||
|
||||
//
|
||||
// Item Title
|
||||
@ -204,8 +202,18 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
+" [Cast ID: "+QString().sprintf("%u",cast_cast->id())+"]");
|
||||
cast_item_title_edit->setText(cast_cast->itemTitle());
|
||||
cast_item_author_edit->setText(cast_cast->itemAuthor());
|
||||
cast_item_origin_edit->setText(cast_cast->originDateTime().
|
||||
toString("MM/dd/yyyy - hh:mm:ss"));
|
||||
if(cast_cast->originLoginName().isEmpty()) {
|
||||
cast_item_origin_edit->
|
||||
setText(tr("unknown")+" "+tr("at")+" "+
|
||||
cast_cast->originDateTime().toString("MM/dd/yyyy - hh:mm:ss"));
|
||||
}
|
||||
else {
|
||||
cast_item_origin_edit->
|
||||
setText(cast_cast->originLoginName()+" "+tr("on")+" "+
|
||||
cast_cast->originStation()+" "+tr("at")+" "+
|
||||
cast_cast->originDateTime().toString("MM/dd/yyyy - hh:mm:ss"));
|
||||
}
|
||||
|
||||
cast_item_category_edit->setText(cast_cast->itemCategory());
|
||||
cast_item_category_label->
|
||||
setVisible(rda->rssSchemas()->
|
||||
@ -375,9 +383,8 @@ void EditCast::resizeEvent(QResizeEvent *e)
|
||||
//
|
||||
// Posted At
|
||||
//
|
||||
cast_item_origin_edit->setGeometry(w-160,ypos,150,20);
|
||||
cast_item_origin_label->setGeometry(w-275,ypos,110,20);
|
||||
|
||||
cast_item_origin_label->setGeometry(w-445,ypos,110,20);
|
||||
cast_item_origin_edit->setGeometry(w-330,ypos,320,20);
|
||||
ypos+=27;
|
||||
|
||||
//
|
||||
|
@ -58,6 +58,8 @@ class EditCast : public RDDialog
|
||||
private:
|
||||
RDFeed *cast_feed;
|
||||
RDPodcast *cast_cast;
|
||||
// QLabel *cast_item_origin_user_label;
|
||||
// QLineEdit *cast_item_origin_user_edit;
|
||||
QLabel *cast_item_origin_label;
|
||||
QLineEdit *cast_item_origin_edit;
|
||||
QLabel *cast_item_title_label;
|
||||
|
@ -123,9 +123,9 @@ ListCasts::ListCasts(unsigned feed_id,bool is_super,QWidget *parent)
|
||||
list_casts_view->setColumnAlignment(0,Qt::AlignCenter);
|
||||
list_casts_view->addColumn(tr("Title"));
|
||||
list_casts_view->setColumnAlignment(1,Qt::AlignLeft);
|
||||
list_casts_view->addColumn(tr("Origin"));
|
||||
list_casts_view->addColumn(tr("Start"));
|
||||
list_casts_view->setColumnAlignment(2,Qt::AlignLeft);
|
||||
list_casts_view->addColumn(tr("Expires"));
|
||||
list_casts_view->addColumn(tr("Expiration"));
|
||||
list_casts_view->setColumnAlignment(3,Qt::AlignCenter);
|
||||
list_casts_view->addColumn(tr("Length"));
|
||||
list_casts_view->setColumnAlignment(4,Qt::AlignRight);
|
||||
@ -135,8 +135,8 @@ ListCasts::ListCasts(unsigned feed_id,bool is_super,QWidget *parent)
|
||||
list_casts_view->setColumnAlignment(6,Qt::AlignLeft);
|
||||
list_casts_view->addColumn(tr("Category"));
|
||||
list_casts_view->setColumnAlignment(7,Qt::AlignCenter);
|
||||
list_casts_view->addColumn(tr("Link"));
|
||||
list_casts_view->setColumnAlignment(8,Qt::AlignCenter);
|
||||
list_casts_view->addColumn(tr("Posted By"));
|
||||
list_casts_view->setColumnAlignment(8,Qt::AlignLeft);
|
||||
connect(list_casts_view,
|
||||
SIGNAL(doubleClicked(Q3ListViewItem *,const QPoint &,int)),
|
||||
this,
|
||||
@ -501,13 +501,14 @@ void ListCasts::RefreshItem(RDListViewItem *item)
|
||||
sql=QString("select ")+
|
||||
"PODCASTS.STATUS,"+ // 00
|
||||
"PODCASTS.ITEM_TITLE,"+ // 01
|
||||
"PODCASTS.ORIGIN_DATETIME,"+ // 02
|
||||
"PODCASTS.EFFECTIVE_DATETIME,"+ // 02
|
||||
"PODCASTS.EXPIRATION_DATETIME,"+ // 03
|
||||
"PODCASTS.AUDIO_TIME,"+ // 04
|
||||
"PODCASTS.ITEM_DESCRIPTION,"+ // 05
|
||||
"FEEDS.KEY_NAME,"+ // 06
|
||||
"PODCASTS.ITEM_CATEGORY,"+ // 07
|
||||
"PODCASTS.ITEM_LINK "+ // 08
|
||||
"PODCASTS.ORIGIN_LOGIN_NAME,"+ // 08
|
||||
"PODCASTS.ORIGIN_STATION "+ // 09
|
||||
"from PODCASTS left join FEEDS "+
|
||||
"on PODCASTS.FEED_ID=FEEDS.ID where "+
|
||||
QString().sprintf("PODCASTS.ID=%d",item->id());
|
||||
@ -538,7 +539,15 @@ void ListCasts::RefreshItem(RDListViewItem *item)
|
||||
item->setText(5,q->value(5).toString());
|
||||
item->setText(6,q->value(6).toString());
|
||||
item->setText(7,q->value(7).toString());
|
||||
item->setText(8,q->value(8).toString());
|
||||
if(q->value(8).isNull()) {
|
||||
item->setText(8,tr("unknown")+" "+tr("at")+" "+
|
||||
q->value(3).toDateTime().toString("MM/dd/yyyy hh:mm:ss"));
|
||||
}
|
||||
else {
|
||||
item->setText(8,q->value(8).toString()+" "+tr("on")+" "+
|
||||
q->value(9).toString()+" "+tr("at")+" "+
|
||||
q->value(3).toDateTime().toString("MM/dd/yyyy hh:mm:ss"));
|
||||
}
|
||||
}
|
||||
delete q;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted At:</source>
|
||||
<translation>Vyvěšeno:</translation>
|
||||
<translation type="obsolete">Vyvěšeno:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
@ -129,6 +129,18 @@ dílu</translation>
|
||||
<source>Editing Item</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
@ -187,11 +199,11 @@ Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 :
|
||||
</message>
|
||||
<message>
|
||||
<source>Origin</source>
|
||||
<translation>Původ</translation>
|
||||
<translation type="obsolete">Původ</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expires</source>
|
||||
<translation>Přestane platit</translation>
|
||||
<translation type="obsolete">Přestane platit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Length</source>
|
||||
@ -207,7 +219,7 @@ Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 :
|
||||
</message>
|
||||
<message>
|
||||
<source>Link</source>
|
||||
<translation>Odkaz</translation>
|
||||
<translation type="obsolete">Odkaz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Uploading Audio...</source>
|
||||
@ -346,6 +358,30 @@ Log</source>
|
||||
<source>Only Show Active Items</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>at</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Start</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expiration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LogDialog</name>
|
||||
|
@ -41,7 +41,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted At:</source>
|
||||
<translation>Gepostet am:</translation>
|
||||
<translation type="obsolete">Gepostet am:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
@ -125,6 +125,18 @@
|
||||
<source>Editing Item</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
@ -172,11 +184,11 @@ Car&t/Cut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Origin</source>
|
||||
<translation>Herkunft</translation>
|
||||
<translation type="obsolete">Herkunft</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expires</source>
|
||||
<translation>Läuf ab</translation>
|
||||
<translation type="obsolete">Läuf ab</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Length</source>
|
||||
@ -192,7 +204,7 @@ Car&t/Cut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Link</source>
|
||||
<translation>Link</translation>
|
||||
<translation type="obsolete">Link</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Uploading Audio...</source>
|
||||
@ -331,6 +343,30 @@ Log</source>
|
||||
<source>Only Show Active Items</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>at</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Start</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expiration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LogDialog</name>
|
||||
|
@ -21,7 +21,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted At:</source>
|
||||
<translation>Colocado el:</translation>
|
||||
<translation type="obsolete">Colocado el:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
@ -125,6 +125,18 @@ Episodios</translation>
|
||||
<source>Editing Item</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
@ -146,11 +158,11 @@ Episodios</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Origin</source>
|
||||
<translation>Origen</translation>
|
||||
<translation type="obsolete">Origen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expires</source>
|
||||
<translation>Expira</translation>
|
||||
<translation type="obsolete">Expira</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Description</source>
|
||||
@ -162,7 +174,7 @@ Episodios</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Link</source>
|
||||
<translation>Enlace</translation>
|
||||
<translation type="obsolete">Enlace</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Never</source>
|
||||
@ -286,6 +298,30 @@ Log</source>
|
||||
<source>Only Show Active Items</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>at</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Start</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expiration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LogDialog</name>
|
||||
|
@ -27,10 +27,6 @@
|
||||
<source>Comments URL:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted At:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -79,6 +75,18 @@
|
||||
<source>Editing Item</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
@ -112,14 +120,6 @@ Car&t/Cut</source>
|
||||
<source>Title</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Origin</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expires</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Length</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -132,10 +132,6 @@ Car&t/Cut</source>
|
||||
<source>Category</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Link</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Uploading Audio...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -219,6 +215,30 @@ Log</source>
|
||||
<source>Only Show Active Items</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>at</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Start</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expiration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LogDialog</name>
|
||||
|
@ -41,7 +41,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted At:</source>
|
||||
<translation>Lagt inn:</translation>
|
||||
<translation type="obsolete">Lagt inn:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
@ -121,6 +121,18 @@
|
||||
<source>Editing Item</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
@ -167,11 +179,11 @@ Korg/Ku&tt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Origin</source>
|
||||
<translation>Opphav</translation>
|
||||
<translation type="obsolete">Opphav</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expires</source>
|
||||
<translation>Går ut</translation>
|
||||
<translation type="obsolete">Går ut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Length</source>
|
||||
@ -187,7 +199,7 @@ Korg/Ku&tt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Link</source>
|
||||
<translation>Lenkje</translation>
|
||||
<translation type="obsolete">Lenkje</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Casts:</source>
|
||||
@ -318,6 +330,30 @@ Log</source>
|
||||
<source>Only Show Active Items</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>at</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Start</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expiration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LogDialog</name>
|
||||
|
@ -41,7 +41,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted At:</source>
|
||||
<translation>Lagt inn:</translation>
|
||||
<translation type="obsolete">Lagt inn:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
@ -121,6 +121,18 @@
|
||||
<source>Editing Item</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
@ -167,11 +179,11 @@ Korg/Ku&tt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Origin</source>
|
||||
<translation>Opphav</translation>
|
||||
<translation type="obsolete">Opphav</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expires</source>
|
||||
<translation>Går ut</translation>
|
||||
<translation type="obsolete">Går ut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Length</source>
|
||||
@ -187,7 +199,7 @@ Korg/Ku&tt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Link</source>
|
||||
<translation>Lenkje</translation>
|
||||
<translation type="obsolete">Lenkje</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>&Casts:</source>
|
||||
@ -318,6 +330,30 @@ Log</source>
|
||||
<source>Only Show Active Items</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>at</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Start</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expiration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LogDialog</name>
|
||||
|
@ -53,7 +53,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted At:</source>
|
||||
<translation>Postado em:</translation>
|
||||
<translation type="obsolete">Postado em:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>No</source>
|
||||
@ -125,6 +125,18 @@ Episódio</translation>
|
||||
<source>Editing Item</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ListCasts</name>
|
||||
@ -163,11 +175,11 @@ Episódio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Origin</source>
|
||||
<translation>Origem</translation>
|
||||
<translation type="obsolete">Origem</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expires</source>
|
||||
<translation>Expira</translation>
|
||||
<translation type="obsolete">Expira</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Length</source>
|
||||
@ -183,7 +195,7 @@ Episódio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Link</source>
|
||||
<translation>Link</translation>
|
||||
<translation type="obsolete">Link</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Post From
|
||||
@ -296,6 +308,30 @@ Log</source>
|
||||
<source>Only Show Active Items</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Posted By</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>at</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Start</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Expiration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>on</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>LogDialog</name>
|
||||
|
@ -40,6 +40,16 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
// NEW SCHEMA REVERSIONS GO HERE...
|
||||
|
||||
|
||||
//
|
||||
// Revert 330
|
||||
//
|
||||
if((cur_schema==330)&&(set_schema<cur_schema)) {
|
||||
DropColumn("PODCASTS","ORIGIN_STATION");
|
||||
DropColumn("PODCASTS","ORIGIN_LOGIN_NAME");
|
||||
|
||||
WriteSchemaVersion(--cur_schema);
|
||||
}
|
||||
|
||||
//
|
||||
// Revert 329
|
||||
//
|
||||
|
@ -161,7 +161,7 @@ void MainObject::InitializeSchemaMap() {
|
||||
global_version_map["3.2"]=311;
|
||||
global_version_map["3.3"]=314;
|
||||
global_version_map["3.4"]=317;
|
||||
global_version_map["4.0"]=329;
|
||||
global_version_map["4.0"]=330;
|
||||
}
|
||||
|
||||
|
||||
|
@ -10161,6 +10161,21 @@ bool MainObject::UpdateSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
WriteSchemaVersion(++cur_schema);
|
||||
}
|
||||
|
||||
if((cur_schema<330)&&(set_schema>cur_schema)) {
|
||||
sql=QString("alter table PODCASTS ")+
|
||||
"add column ORIGIN_LOGIN_NAME varchar(191) after AUDIO_TIME";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
return false;
|
||||
}
|
||||
sql=QString("alter table PODCASTS ")+
|
||||
"add column ORIGIN_STATION varchar(64) after ORIGIN_LOGIN_NAME";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
WriteSchemaVersion(++cur_schema);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// NEW SCHEMA UPDATES GO HERE...
|
||||
|
Loading…
x
Reference in New Issue
Block a user