Request: Alternative method to add offline recitation

534 views
Skip to first unread message

Ahmed Faruk YAZICI

unread,
Apr 20, 2011, 3:45:16 AM4/20/11
to zekr
I have been using the everyayah.com files for a long time. I have
these files in my computer.
When I started to use Zekr, I realized that I have to download offline
recitations files. These files are so similar to everayah.com ZIP
files. Only difference is separated folders for each surah and
recitation.properties file in each ZIP file.

When I try to manually add offline recitations by editing *.properties
file, Zekr encounters a problem and stop working. I think there should
an alternative way to define the offline recitation files to program.
In this way, I wouldn't have to be re-download GB's of files.

Mohsen Saboorian

unread,
Apr 21, 2011, 5:18:53 AM4/21/11
to Zekr Group
Salaam,

This is possible to use your old split files downloaded from everyayah.com. Here is instructions:
1. Read this article: http://zekr.org/wiki/Recitation_format (you should be able to do the rest by reading it alone)
2. Edit the recitation .properties file you want to change
3. Make sure audio.type is set to offline.
4. If you have a single folder, say C:\audio\mishawi in which all *.mp3s (e.g. 001001.mp3, 001002.mp3, ... 114005.mp3, 111006.mp3) are, change audio.offlienUrl to something like this:

audio.offlineUrl = <absolute>C:/audio/minshawi/%1$03d%2$03d.mp3 
if every sura is in a single folder named 001, 002, ..., 114 (like Zekr .recit.zip packages), your offlineUrl should be like this:

audio.offlineUrl = <absolute>F:/recitation/afasy/%1$03d/%1$03d%2$03d.mp3 

5. Start Zekr, and play your recitation.

Regards,
Mohsen



--
You received this message because you are subscribed to the Google Groups "zekr" group.
To post to this group, send email to ze...@googlegroups.com.
To unsubscribe from this group, send email to zekr+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/zekr?hl=en.


Ahmed Faruk YAZICI

unread,
Apr 26, 2011, 12:51:27 AM4/26/11
to zekr
I have already tried this before but when I change ***.properties file
in the res/audio folder, Zekr won't start.

I get this error if I make any changes in that file:

java.lang.NullPointerException
at java.lang.String.compareTo(Unknown Source)
at net.sf.zekr.ui.QuranFormMenuFactory
$14.compare(QuranFormMenuFactory.java:777)
at net.sf.zekr.ui.QuranFormMenuFactory
$14.compare(QuranFormMenuFactory.java:775)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at
net.sf.zekr.ui.QuranFormMenuFactory.createOrUpdateRecitationMenu(QuranFormMenuFactory.java:
775)
at
net.sf.zekr.ui.QuranFormMenuFactory.getQuranFormMenu(QuranFormMenuFactory.java:
533)
at net.sf.zekr.ui.QuranForm.init(QuranForm.java:292)
at net.sf.zekr.ui.QuranForm.<init>(QuranForm.java:278)
at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:51)
at net.sf.zekr.ZekrMain.main(ZekrMain.java:91)


On 21 Nisan, 12:18, Mohsen Saboorian <mohs...@gmail.com> wrote:
> Salaam,
>
> This is possible to use your old split files downloaded from everyayah.com.
> Here is instructions:
> 1. Read this article:http://zekr.org/wiki/Recitation_format(you should be
> able to do the rest by reading it alone)
>  <http://zekr.org/wiki/Recitation_format>2. Edit the recitation .properties
> file you want to change
> 3. Make sure audio.type is set to offline.
> 4. If you have a single folder, say C:\audio\mishawi in which all *.mp3s
> (e.g. 001001.mp3, 001002.mp3, ... 114005.mp3, 111006.mp3) are, change
> audio.offlienUrl
> to something like this:
>
> audio.offlineUrl = <absolute>C:/audio/minshawi/%1$03d%2$03d.mp3
>
> if every sura is in a single folder named 001, 002, ..., 114 (like Zekr
> .recit.zip packages), your offlineUrl should be like this:
>
> audio.offlineUrl = <absolute>F:/recitation/afasy/%1$03d/%1$03d%2$03d.mp3
>
> 5. Start Zekr, and play your recitation.
>
> Regards,
> Mohsen
>
> On Wed, Apr 20, 2011 at 12:15 PM, Ahmed Faruk YAZICI
> <farukyaz...@gmail.com>wrote:

Ahmed Faruk YAZICI

unread,
Apr 26, 2011, 12:56:14 AM4/26/11
to zekr
I have told that I get an error in the case of editing *.properties
file but the weird thing is even if I change it with the original
file, I keep getting error messages. I have to delete the *.properties
file to start the Zekr and add the whole recitation package again. Any
ideas?

On 21 Nisan, 12:18, Mohsen Saboorian <mohs...@gmail.com> wrote:
> Salaam,
>
> This is possible to use your old split files downloaded from everyayah.com.
> Here is instructions:
> 1. Read this article:http://zekr.org/wiki/Recitation_format(you should be
> able to do the rest by reading it alone)
>  <http://zekr.org/wiki/Recitation_format>2. Edit the recitation .properties
> file you want to change
> 3. Make sure audio.type is set to offline.
> 4. If you have a single folder, say C:\audio\mishawi in which all *.mp3s
> (e.g. 001001.mp3, 001002.mp3, ... 114005.mp3, 111006.mp3) are, change
> audio.offlienUrl
> to something like this:
>
> audio.offlineUrl = <absolute>C:/audio/minshawi/%1$03d%2$03d.mp3
>
> if every sura is in a single folder named 001, 002, ..., 114 (like Zekr
> .recit.zip packages), your offlineUrl should be like this:
>
> audio.offlineUrl = <absolute>F:/recitation/afasy/%1$03d/%1$03d%2$03d.mp3
>
> 5. Start Zekr, and play your recitation.
>
> Regards,
> Mohsen
>
> On Wed, Apr 20, 2011 at 12:15 PM, Ahmed Faruk YAZICI
> <farukyaz...@gmail.com>wrote:

Mohsen Saboorian

unread,
Apr 26, 2011, 10:52:00 AM4/26/11
to ze...@googlegroups.com
Salaam,

Why don't you attach the erroneous file? Do you miss audio.id or audio.version? If you remove your workspace/config/config.properties, you should be able to reset Zekr to factory settings.

Mohsen

Ahmed Faruk YAZICI

unread,
Apr 27, 2011, 12:25:33 AM4/27/11
to zekr
I downloaded verse by verse files from everyayah.com and unpacked them
in D:/Faruk/Music/Kuran/000_versebyverse folder. The files are not
categorized by surah. They are all in the same folder.

Then I edited afasy-64kbps-offline.properties file as the following:

audio.id = afasy-128kbps-offline
audio.version = 0.7.5
audio.lastUpdate = 25-07-2010
audio.quality = 128kbps

audio.license = Unknown
audio.language = ar
audio.country = KW

audio.reciter = Mishary bin Rashid Al-Afasy
audio.reciter.fa = مشاری بن راشد عفاسی
audio.reciter.ar = مشاري بن راشد العفاسي
audio.reciter.en = Mishary bin Rashid Al-Afasy
audio.reciter.ru = Мишари бин Рашид аль-Афаси
audio.reciter.tr = Mişari bin Raşid el-Afâsî

audio.type = offline

audio.onlineUrl = http://everyayah.com/data/Alafasy_128kbps/%1$03d%2$03d.mp3
audio.offlineUrl = D:/Faruk/Music/Kuran/000_versebyverse/%1$03d
%2$03d.mp3

audio.offlineAudhubillah = D:/Faruk/Music/Kuran/000_versebyverse/
audhubillah.mp3
audio.offlineBismillah = D:/Faruk/Music/Kuran/000_versebyverse/
bismillah.mp3
audio.offlineBismillam = D:/Faruk/Music/Kuran/000_versebyverse/
bismillah.mp3
audio.offlineSadaghallah = D:/Faruk/Music/Kuran/000_versebyverse/
sadaghallah.mp3

audio.onlineAudhubillah = http://everyayah.com/data/Alafasy_128kbps/audhubillah.mp3
audio.onlineBismillah = http://everyayah.com/data/Alafasy_128kbps/bismillah.mp3
audio.onlineBismillam = http://everyayah.com/data/Alafasy_128kbps/bismillah.mp3
audio.onlineSadaghallah =


When I do this, Zekr won't start.
Should I try to place this file in a recit.zip pack and install the
pack with Zekr?

Mohsen Saboorian

unread,
Apr 30, 2011, 2:25:21 PM4/30/11
to ze...@googlegroups.com
Salaam,

1. Send me your zekr.log (workspace/zekr.log)
2. Zekr won't start if this modified properties exists in your res/audio folder? Doesn this start after moving this somewhere else? Please attach exact file (do not copy/paste).

Regards,
Mohsen


--
Reply all
Reply to author
Forward
0 new messages