summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrafa_99 <raroma09@gmail.com>2021-09-05 00:12:39 +0100
committerrafa_99 <raroma09@gmail.com>2021-09-05 00:12:39 +0100
commit0150234f07c9999a405f53ab4666984e17d27e0e (patch)
tree6552e22bf6fb6e7e64c8abd35484e38800e3d030 /src
parented9ad979be88a230eb873e8914a2425f84f09b06 (diff)
Some refactoring
Diffstat (limited to 'src')
-rw-r--r--src/utils.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index db8eaf3..45735ad 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -216,6 +216,12 @@ void printVideoInfo(char *format, Video *videos, int numberOfVideos)
case 't':
printf("%s", videos[i].title);
break;
+ case 'R':
+ printf("\n");
+ break;
+ case 'T':
+ printf("\t");
+ break;
default:
if( !isalpha(format[j]) )
{
@@ -230,7 +236,7 @@ void printVideoInfo(char *format, Video *videos, int numberOfVideos)
{
for( int i = 0; i < numberOfVideos; i++ )
{
- printf("%s - %s %s %s\n", videos[i].title, videos[i].author, videos[i].duration, videos[i].id);
+ printf("%s\t%s\n", videos[i].id, videos[i].title);
}
}
}