29 | 03 | 2024
Main menu
Login/Logout
 
Contacts
Реклама
Our button

Блог Ecolora

Код:

<a href="http://www.ecolora.com" target="_blank" rel="nothing" title="Ecolora.com"><img alt="Ecolora.com" height="31" src="http://www.ecolora.com/images/ecoloracom.gif" width="88" /></a>
Who's online

We have 71 guests and no members online

Лента новостей

Newsletter
Welcome, Guest
Username: Password: Remember me
Component and plugin for musical sites / Компонент для музыкальных сайтов и улучшенная версия плагина MP3 Browser

TOPIC: How to store songs by track no or file name?

How to store songs by track no or file name? 9 years 5 months ago #7111

  • 9944990
  • 9944990's Avatar
  • Offline
  • Осваиваюсь на форуме
  • Posts: 27
  • Karma: 0
Currently when I place code on my website to scan a folder it stores the songs randomly not by file name or track name.

For example:

I have 5 songs on a folder:

01_Title_01
02_Title_02
03_Title_03
04_Title_04
05_Title_05

I want this to store on data base as above but now it lists is as below:

04_Title_04
01_Title_04
03_Title_04
05_Title_05
02_Title_02

I use the following code:
{commedia sort=track}mp3/album1{/commedia}
Last Edit: 9 years 5 months ago by 9944990.
The administrator has disabled public write access.

How to store songs by track no or file name? 9 years 5 months ago #7112

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
What's the problem? I didn't understand.

Could You read here, please?

www.ecolora.org/index.php/demo/commedia/menuaudio/menusortorder
Last Edit: 9 years 5 months ago by admin.
The administrator has disabled public write access.

How to store songs by track no or file name? 9 years 5 months ago #7113

  • 9944990
  • 9944990's Avatar
  • Offline
  • Осваиваюсь на форуме
  • Posts: 27
  • Karma: 0
I want the plugin to store songs on the database sorted by track no or file name. The link provided is for front end.

For example

ID Song Title
01 04_Title_04
02 01_Title_04
03 03_Title_04
04 05_Title_05
05 02_Title_02

It means song no 4 gets ID 1 and Song no 1 gets ID 2. IT is not stored on database as I want it.
The administrator has disabled public write access.

How to store songs by track no or file name? 9 years 5 months ago #7114

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
Did You read here:

www.ecolora.org/index.php/demo/commedia/menuaudio/menusortorder

?

If You want to sort by track number first (getting from ID3 tag) You should to use
{commedia sort=track,name}mp3/album1{/commedia}

If You want to sort by filename, You should use:
{commedia sort=name,track}mp3/album1{/commedia}

Where the name if first.

If You still have problems with that, Let me see this on Your site?
Last Edit: 9 years 5 months ago by admin.
The administrator has disabled public write access.

How to store songs by track no or file name? 9 years 5 months ago #7115

  • 9944990
  • 9944990's Avatar
  • Offline
  • Осваиваюсь на форуме
  • Posts: 27
  • Karma: 0
Thank you for your message, I think you have not understand my question let me try again.

I do not have problem with sorting the songs by name, title, track etc to list them on the website for users.

However my problem is When I upload songs on a folder the plugin scans and store song information on database there i have the problem.

The plugin store song information randomly it means it does not store track 1 first track 2 second so on.

I have attached a sanpshot if you see the listing rowid 1 shows track 1 but rowid 2 has track 6 not track 2.

I hope i was able to explain this time properly.


The administrator has disabled public write access.

How to store songs by track no or file name? 9 years 5 months ago #7116

  • admin
  • admin's Avatar
  • Offline
  • Администратор
  • Posts: 465
  • Thank you received: 40
  • Karma: 19
You're absolutelly right. The plugin stores infromation in database randomly. Because files in folder are laying randomly too. It's normal for File System.
Plugin scans folder and put information about every file step by step.

If You don't like default order (by rowid) in Your table in database, You have to click on any column in that table and it will sorted by that column.
Last Edit: 9 years 5 months ago by admin.
The administrator has disabled public write access.
Time to create page: 0.573 seconds
for children older than 12 years