Changeset 32850
- Timestamp:
- 02/03/15 23:34:16 (8 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/mediadb.h
r32849 r32850 1495 1495 // create filelist info 1496 1496 tmpstr = ostrcat(tmpstr, file, 1, 0); 1497 char* tmpstr1 = oregex(".*([0-9]{14,14}).*", tmpstr);1498 if(tmpstr1 != NULL)1499 {1500 shortname = string_replace(tmpstr1, "", shortname, 1);1501 if(fileinfo != NULL)1502 fileinfo = ostrcat(fileinfo, " ", 1, 0);1503 fileinfo = ostrcat(fileinfo, "rec", 1, 0);1504 *isrec = 1;1505 }1506 free(tmpstr1); tmpstr1 = NULL;1507 1508 tmpstr1 = oregex(".*([0-9]{8,8}.*[0-9]{4,4}).*", tmpstr);1509 if(tmpstr1 != NULL && *isrec == 0)1510 {1511 shortname = string_replace(tmpstr1, "", shortname, 1);1512 if(fileinfo != NULL)1513 fileinfo = ostrcat(fileinfo, " ", 1, 0);1514 fileinfo = ostrcat(fileinfo, "recold", 1, 0);1515 *isrec = 1;1516 }1517 free(tmpstr1); tmpstr1 = NULL;1518 1519 tmpstr1 = oregex(".*([0-9]{5,5}).*", tmpstr);1520 if(tmpstr1 != NULL && *isrec == 0)1521 {1522 *iscam = 1;1523 if(fileinfo != NULL)1524 fileinfo = ostrcat(fileinfo, " ", 1, 0);1525 fileinfo = ostrcat(fileinfo, "cam", 1, 0);1526 }1527 free(tmpstr1), tmpstr1 = NULL;1528 1529 if(*isrec == 0 && *iscam == 0)1530 {1531 string_tolower(shortname);1532 shortname = string_shortname(shortname, 2);1533 string_removechar(shortname);1534 strstrip(shortname);1535 }1536 else1537 {1538 char* cut = ostrcat(".", getfilenameext(tmpstr), 0, 1);1539 cut = ostrcat(cut, "\0", 1, 0);1540 shortname = string_replace(cut, "\0", shortname, 1);1541 free(cut); cut = NULL;1542 1543 string_removechar(shortname);1544 strstrip(shortname);1545 }1546 1497 1547 1498 printf("###### strip () strings start ############################################\n"); … … 1589 1540 // end 1590 1541 printf("###### strip () strings end ############################################\n"); 1542 1543 char* tmpstr1 = oregex(".*([0-9]{14,14}).*", tmpstr); 1544 if(tmpstr1 != NULL) 1545 { 1546 shortname = string_replace(tmpstr1, "", shortname, 1); 1547 if(fileinfo != NULL) 1548 fileinfo = ostrcat(fileinfo, " ", 1, 0); 1549 fileinfo = ostrcat(fileinfo, "rec", 1, 0); 1550 *isrec = 1; 1551 } 1552 free(tmpstr1); tmpstr1 = NULL; 1553 1554 tmpstr1 = oregex(".*([0-9]{8,8}.*[0-9]{4,4}).*", tmpstr); 1555 if(tmpstr1 != NULL && *isrec == 0) 1556 { 1557 shortname = string_replace(tmpstr1, "", shortname, 1); 1558 if(fileinfo != NULL) 1559 fileinfo = ostrcat(fileinfo, " ", 1, 0); 1560 fileinfo = ostrcat(fileinfo, "recold", 1, 0); 1561 *isrec = 1; 1562 } 1563 free(tmpstr1); tmpstr1 = NULL; 1564 1565 tmpstr1 = oregex(".*([0-9]{5,5}).*", tmpstr); 1566 if(tmpstr1 != NULL && *isrec == 0) 1567 { 1568 *iscam = 1; 1569 if(fileinfo != NULL) 1570 fileinfo = ostrcat(fileinfo, " ", 1, 0); 1571 fileinfo = ostrcat(fileinfo, "cam", 1, 0); 1572 } 1573 free(tmpstr1), tmpstr1 = NULL; 1574 1575 if(*isrec == 0 && *iscam == 0) 1576 { 1577 string_tolower(shortname); 1578 shortname = string_shortname(shortname, 2); 1579 string_removechar(shortname); 1580 strstrip(shortname); 1581 } 1582 else 1583 { 1584 char* cut = ostrcat(".", getfilenameext(tmpstr), 0, 1); 1585 cut = ostrcat(cut, "\0", 1, 0); 1586 shortname = string_replace(cut, "\0", shortname, 1); 1587 free(cut); cut = NULL; 1588 1589 string_removechar(shortname); 1590 strstrip(shortname); 1591 } 1591 1592 1592 1593 string_tolower(tmpstr); -
titan/titan/record.h
r32846 r32850 863 863 buf1 = ostrcat(buf, NULL, 1, 0); 864 864 865 tmpstr = ostrcat(tmpstr, "-", 1, 0); 865 if(type != RECTIMESHIFT && recordnamefmt == 1) 866 tmpstr = ostrcat(tmpstr, "-", 1, 0); 867 else 868 tmpstr = ostrcat(tmpstr, " (", 1, 0); 866 869 tmpstr = ostrcat(tmpstr, buf1, 1, 1); 867 870 tmpstr = ostrcat(tmpstr, ")", 1, 0);
Note: See TracChangeset
for help on using the changeset viewer.