switch(buf[i+1])
{
case FIRST_PRIORITY:
- case 3:
tf.setPriority(FIRST_PRIORITY);
break;
case NORMAL_PRIORITY:
- case 2:
// By default priority is set to normal, so do nothing
//tf.setPriority(NORMAL_PRIORITY);
break;
case EXCLUDED:
- case 0:
//tf.setDoNotDownload(true);
tf.setPriority(EXCLUDED);
break;
case ONLY_SEED_PRIORITY:
- case -1:
tf.setPriority(ONLY_SEED_PRIORITY);
break;
default:
typedef enum
{
- /* These are the old values, for compatibility reasons with old chunk_info files we leave them here :
- PREVIEW_PRIORITY = 4,
- FIRST_PRIORITY = 3,
- NORMAL_PRIORITY = 2,
- LAST_PRIORITY = 1,
- EXCLUDED = 0,
- ONLY_SEED_PRIORITY = -1
- */
// make sure new values are different from old values
// also leave some room if we want to add new priorities in the future
PREVIEW_PRIORITY = 60,